#endif
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

#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

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

Show:
© 2016 Microsoft