Follow @RoyOsherove on Twitter

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

End Sub

 

[Conditional("DEBUG")]

Private void MyMethod()

{}

Hosting the CLR - the native approach

Asynchronous ASP.Net actions suck?