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