Thank you for the feature request!
Add support for ConditionalAttribute
A .NET feature that is useful is the [Conditional("DEBUG")]
attribute.
From MSDN:
Applying ConditionalAttribute to a method indicates to compilers that a call to the method should not be compiled into Microsoft intermediate language (MSIL) unless the conditional compilation symbol that is associated with ConditionalAttribute is defined. You will get a compilation error in Visual Studio if you apply this attribute to a method that does not return void. Applying ConditionalAttribute to an attribute indicates that the attribute should not be emitted to metadata unless the conditional compilation symbol is defined. Any arguments passed to the method or attribute are still type-checked by the compiler.
该提问来源于开源项目:bridgedotnet/Bridge
- 点赞
- 写回答
- 关注问题
- 收藏
- 复制链接分享
- 邀请回答