(C#) Determining whether the current build mode is Debug or Release






3.85/5 (5 votes)
You can make it a bit shorter: public virtual bool IsDebug { get { #if (DEBUG) return true; #else return false; #endif } }Thanks for sharing,
You can make it a bit shorter:
public virtual bool IsDebug
{
get {
#if (DEBUG)
return true;
#else
return false;
#endif
}
}
Thanks for sharing,