Version: 2022.2

CompilationPipeline.IsDefineConstraintsCompatible

切换到手册
public static bool IsDefineConstraintsCompatible (string[] defines, string[] defineConstraints);

参数

defines #define 指令的字符串数组。
defineConstraints 要检查其兼容性的 #define 指令的字符串数组。

返回

bool 如果指定的 #define 指令满足指定的 #define 约束,则返回 True。否则返回 False。

描述

用于测试指定的 #define 指令列表是否满足指定的 #define 约束。

另请参阅:AssemblyCompilationPipeline