Class Declaration

A class is a reference type that contains data members, such as indexers, properties, methods, and events. You must declare a class before it can be instantiated. Class declaration follows the following syntax:

						attributes modifier class class_identifier: class_base 
    class body 

Class Attributes

An attribute represents declarative information that can be attached to the different elements of code, such as classes, methods, data members, or properties. This declarative information can then be queried at runtime.

→ For an introductory explanation of attributes, seeAttributes,” p. 75

→ For a detailed explanation of attribute usage, seeAttributes,” p. 267

Class Modifiers

A modifier is a language feature that is used to ...

Get Special Edition Using C# now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.