I just read http://msdn.microsoft.com/en-us/library/system.diagnostics.conditionalattribute.aspx.
And I'm struggling to understand what the difference is between using
[Conditional("CONDITION1")]
with/without
#define CONDITION1
and just commenting/uncommenting a method?
Is the only purpose of ConditionalAttribute to make the compiler ignore a method or attribute? If so, why not juse use a comment? If not, what are the advantages compared to just using comments?