You could use the #if DEBUG directive to set the value of a boolean variable that you could then check at runtime, .e.g:
bool isInDebugMode = false;
#if DEBUG
isInDebugMode = true;
#endif
if(isInDebugMode) { /* do something */ } else { /* do something else */ }
#if (C# Reference): http://ift.tt/KE9I62
No comments:
Post a Comment