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()

{}

  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Feedback

No comments posted yet.


Post A Comment
Title:
Name:
Email:
Website:
Comment:
Verification:
 
 

 

 

Copyright © Ramesh Arimilli