Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

#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.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.