Simple question that does not seem to be covered: If I use a lot of Debug.WriteLine statements in my code, will they be completely absent in my production version?
I mean: Is the compiler smart enough to not emit any code for those calls? Or would I have to surround them by #if DEBUG..#end if directives?
Debug class members are marked with ConditionalAttribute thus call sites won’t be compiled if the build is done in Release mode
See the top of this page
http://msdn.microsoft.com/en-us/library/9z9k5ydz.aspx