Export (0) Print
Expand All
1 out of 3 rated this helpful - Rate this topic

#else

#else lets you create a compound conditional directive, such that, if none of the expressions in the preceding #if or (optional) #elif directives did not evaluate to true, the compiler will evaluate all code between #else and the subsequent #endif.

#else

Remarks

#endif must be the next preprocessor directive after #else.

Example

See #if for an example of how to use #else.

See Also

C# Preprocessor Directives

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.