Blog Stats
  • Posts - 36
  • Articles - 0
  • Comments - 11
  • Trackbacks - 23

 

The [Conditional] Attribute

If you want to write methods that are only available with conditional compiler arguments you can use an attribute just for that purpose:

[Conditional("DEBUG")]

Private void MyMethod()

{}


Feedback

No comments posted yet.


Post a comment





 

 

 

Copyright © Ramesh Arimilli