There are two ways to do this in C#.
The first:
c# Code:
#if DEBUG
public string foo()
{
return "foo";
}
#endif
The other way is:
c# Code:
[Conditional("DEBUG")]
public static void DoSomething()
{
//Do something here
}
There are significant differences between the two but rather than bore you with it here, you can read an pretty good article that explains the two here:
http://www.thinkfarahead.com/2007/09...nditional.html
hth
-Doug
__________________
===============================================
Doug Parsons
Wrox online library:
Wrox Books 24 x 7
Did someone here help you? Click

on their post!
"Easy is the path to wisdom for those not blinded by themselves."
===============================================