Conditional Attribute

Conditional attribute is under System.Diagnostics name space.

When keyword like "DEBUG" defined (default situation), the function performed.

When keyworkd "Debug" undef, the function just skipped.

 ref:

https://msdn.microsoft.com/en-us/library/system.diagnostics.conditionalattribute(v=vs.110).aspx

http://www.runoob.com/csharp/csharp-attribute.html

猜你喜欢

转载自www.cnblogs.com/jiceberg420/p/9284768.html