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

posted @ 2018-07-09 17:14  No5Meters  阅读(125)  评论(0编辑  收藏  举报