#endif (C# Reference)

#endif specifies the end of a conditional directive, which began with the #if directive. For example,

#define DEBUG  
// ...  
#if DEBUG  
    Console.WriteLine("Debug version");  
#endif  

Remarks

A conditional directive, beginning with a #if directive, must explicitly be terminated with a #endif directive. See #if for an example of how to use #endif.

See Also

C# Reference
C# Programming Guide
C# Preprocessor Directives