In a previous post I talked a little about the Conditional attribute in the System.Diagnostics namespace. To briefly recap, decorating a method with [Conditional(argument)] will instruct the compiler to include the method only when argument is defined. If you’re interested in learning more, Mike Stall has a detailed examination of this attribute and various gotchas here.

Share this post: digg it | Email it |