Tutorial : C# with directives statement

by toy

How to use #if directive. It something like “if” statement but there is something different as I want to show you. It kind of preprocessor directive.

C# preprocessor directive

#Example

#define DEBUG
// …
#if DEBUG
// do something while debug
#endif