What is the usage of #if DEBUG pre-processor directive in C#? When must we use this?
What is the usage of #if DEBUG pre-processor directive in C#? When must we
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In Debug mode:
Output as
In Release mode:
Output as
read this: #if (C# Reference)
Usage: If you have a set of values to be tested in the debug mode and not in the release mode you can use
#if DEBUG