What is the .NET attribuet to not compile a method is release mode
- by Russ
I know that if I have a block of code I don't want compiled when in release mode I can wrap that code block in:
#if DEBUG
while(true)
{ Console.WriteLine("StackOverflow rules"); }
#endif
This will keep this code block from compiling in any mode other than DEBUG.
I know there is an attribute that can be placed on an entire method that will do…