C# 预处理器指令:#undef
#undef 使您可以取消符号的定义,以便通过将该符号用作
可以使用
示例
// preprocessor_undef.cs // compile with: /d:DEBUG #undef DEBUG using System; class MyClass { static void Main() { #if DEBUG Console.WriteLine("DEBUG is defined"); #else Console.WriteLine("DEBUG is not defined"); #endif } } |
本在线速查手册由www.w♥3♥x♥u♥e.com提供,请勿盗用!
DEBUG is not defined |
本在线速查手册由www.w♥3♥x♥u♥e.com提供,请勿盗用!