Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
#endif
Collapse the table of content
Expand the table of content

#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:
© 2015 Microsoft