CSharp examples for Language Basics:Preprocessor
Preprocessor Directives | Usage |
---|---|
#define | defines a sequence of characters, called symbol. |
#undef | undefine a symbol. |
#if | testing a symbol or symbols to see if they evaluate to true. |
#else | create a compound conditional directive, along with #if. |
#elif | creating a compound conditional directive. |
#endif | Specifies the end of a conditional directive. |
#line | modify the compiler's line number and the file name output for errors and warnings. |
#error | generating an error from a specific location in your code. |
#warning | generating a level one warning from a specific location in your code. |
#region | mark a block of code for Visual Studio Code Editor. |
#endregion | marks the end of a #region block. |