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

 

Wednesday, January 07, 2004

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
 

 

Copyright © Ramesh Arimilli