Google News
logo
C# - Interview Questions
What is the use of conditional preprocessor directive in C#?
You can use the #if directive to create a conditional directive. Conditional directives are useful for testing a symbol or symbols to check if they evaluate to true. If they do evaluate to true, the compiler evaluates all the code between the #if and the next directive.
Advertisement