Conditional DEBUG - Does it still compile into RELEASE code?
I know that if I mark code as DEBUG code it won't run in RELEASE mode, but does it still get compiled into an assembly? I just wanna make sure my assembly isn't bloated by extra methods. [Conditional(DEBUG)] private void DoSomeLocalDebugging() { //debugging } Yes, the method itself still is built however you compile. This is entirely logical - because the point of Conditional is to depend on the preprocessor symbols defined when the caller is built, not when the callee is built. Simple test - build this: using System; using System.Diagnostics; class Test { [Conditional("FOO")] static void