You can make it a bit shorter:
public virtual bool IsDebug
{
get {
#if (DEBUG)
return true;
#else
return false;
#endif
}
}
Thanks for sharing,
Pablo writes code for a living, in C++, C#, and SQL.
To make all that work easier, he uses some C++ libraries: STL, ATL & WTL (to write Windows applications), and code generation.
Pablo was born in 1963, got married in 1998, and is the proud father of two wonderful girls.
Favorite quotes:
"Accident: An inevitable occurrence due to the action of immutable natural laws." (Ambrose Bierce, "The Devil's Dictionary", published in several newspapers between 1881 and 1906).
"You are to act in the light of experience as guided by intelligence" (Rex Stout, "In the Best Families", 1950).