D
David Veeneman
I'm creating several public properties in a class that I will use
exclusively for testing purposes. In a Debug compile, I want these
properties to be included in the compile, but I want them omitted from a
Release compile. What is the easiest way to accomplish this goal in VS.Net,
using C#? Conditional Methods won't work, since I want to make properties,
not methods, conditional. I could enclose the conditional properties within
a #if ... #endif block, and use a #define at the top of the file to control
the condition.
But is there a simpler way to do what I want to do? Thanks
David Veeneman
Foresight Systems
exclusively for testing purposes. In a Debug compile, I want these
properties to be included in the compile, but I want them omitted from a
Release compile. What is the easiest way to accomplish this goal in VS.Net,
using C#? Conditional Methods won't work, since I want to make properties,
not methods, conditional. I could enclose the conditional properties within
a #if ... #endif block, and use a #define at the top of the file to control
the condition.
But is there a simpler way to do what I want to do? Thanks
David Veeneman
Foresight Systems