Chapter 21. PREPROCESSING, XML DOCUMENTATION, AND ATTRIBUTES

You will learn about the following in this chapter:

  • C#'s preprocessor directives

  • How to mark different parts of your code with preprocessor directives

  • How to easily exclude code from being compiled with preprocessor directives

  • A brief introduction to automated program documentation

  • What a documentation comment is

  • How to let the compiler turn documentation comments into well-formed XML program documents

  • What an attribute is

  • How to add additional declarative information to C#'s elements by using attributes

Even though the three subjects discussed in this chapter (preprocessor directives, XML documentation, and attributes) are not directly related, they are similar in that they are all separate ...

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.