Summary

This chapter discussed three vaguely related subjects—processor directives, XML documentation, and attributes. Whereas most of the important aspects of processor directives were presented, the XML documentation and attributes discussions were only introductory. A review of the most important points mentioned in this chapter follows.

Preprocessor directives can be used to mark parts of the source code for the compiler to treat these parts in a special way. Preprocessor directives are commonly used to exclude source code from being compiled; this is especially handy for testing purposes. In general, they allow you to produce different versions of a program from the same source code just by defining or undefining one or more identifiers. ...

Get C# Primer Plus now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.