What is the use of conditional preprocessor directive in C#?

Technology CommunityCategory: C#What is the use of conditional preprocessor directive in C#?
VietMX Staff asked 3 years ago

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.