Is there a similar conditionally non-real attribute, or perhaps a way to use the Conditional attribute to include only the method if this character is not defined?
What I'm looking for is what works as follows:
[Conditional("!SILVERLIGHT")] private void DoStuffThatSilverlightCant() {...}
Therefore, the method will not be included if the SILVERLIGHT symbol exists.
The reason I don't want to use a simple #ifdef is because I can use a compiler that removes the calling statements without having to wrap each individual call in #ifdef .
c # symbols visual-studio attributes
MojoFilter
source share