#if DEBUG
bool bypassCheck=TRUE_OR_FALSE;//i will decide depending on what i am debugging
#else
bool bypassCheck = false; //NEVER bypass it
#endif
Make sure you have the checkbox to define DEBUG checked in your build properties.
More Related Contents:
- How to display words that appear more than 'x' times in a text? [closed]
- How to add one year to current year using DateTime [closed]
- What ‘additional configuration’ is necessary to reference a .NET 2.0 mixed mode assembly in a .NET 4.0 project?
- Deserialize JSON to C# Classes
- How does native implementation of ValueType.GetHashCode work?
- WPF chart controls [closed]
- How can I get the assembly file version
- How to check if file exists on FTP before FtpWebRequest
- Why are C# 4 optional parameters defined on interface not enforced on implementing class?
- Is there a way to return Anonymous Type from method?
- LINQ: combining join and group by
- How To Detect If Type is Another Generic Type
- Get List of Zero Reference Codes in Visual Studio
- “The LINQ expression node type ‘Invoke’ is not supported in LINQ to Entities” – stumped!
- Print List of objects to Console
- Calling C# from C
- “Templates can be used only with field access, property access, single-dimension array index, or single-parameter custom indexer expressions” error
- Why can’t c# use inline anonymous lambdas or delegates? [duplicate]
- Pick Random String From Array
- How to create LINQ Query from string?
- How to save shapes which I draw on a Panel as binary
- Is String.Format as efficient as StringBuilder
- Sending SMS from an ASP.NET website [closed]
- Why do we need a private constructor?
- How to use the WebClient.DownloadDataAsync() method in this context?
- .NET Casting Generic List
- Understand the shift operator
- how do access previous item in list using linQ?
- Restarting a thread in .NET (using C#)
- Newtonsoft JSON for .net is ignoring jsonproperty tags