The following table provides an overview of the kinds of members a class can contain.
Member |
Description |
Constants |
Constant values associated with the class |
Fields |
Variables of the class |
Methods |
Computations and actions that can be performed by the class |
Properties |
Actions associated with reading and writing named properties of the class |
Indexers |
Actions associated with indexing instances of the class like an array |
Events |
Notifications that can be generated by the class |
Operators |
Conversions and expression operators supported by the class |
Constructors |
Actions required to initialize instances of the class or the class itself |
Destructors |
Actions to perform before instances of the class are permanently discarded |
Types |
Nested types declared by the class |