Chapter 24. C# preprocessor directivesIf you have ever read C/C++ codes before, you can't have missed those strange looking #define and #include statements found at the beginning of the source codes. These special keywords, which begin with a # sign, are called preprocessor directives. Preprocessor directives, though part of the source codes, are not compiled into IL codes. They are only used by the C# compiler for making certain decisions during compilation. This will become clear as you go through the examples which follow. Table 24.1 shows the preprocessor directives supported in C#: [1]
Table 24.1. Valid preprocessor directives in C#
|