Purpose
#endif specifies the end of a conditional directive, which began with the #ifdef or #ifndef directive. For example:
// DEBUG may be defined from the command line
// ...
#if DEBUG
Console.WriteLine("Debug version");
#else
Console.WriteLine("Release version");
#endif