Class Member Overview

A class in C# can contain the following types of members:
Member TypeDescriptionPrivate / PublicInstance / Static
ConstantsConstant valuesx
FieldsVariables that can be read/writtenxx
MethodsProcedure that can be called to perform some logicxx
PropertiesData storage item that can have associated get/set behaviorxx
IndexersAllows an instance of class to be indexed like an arrayx
EventsAllows the class to notify client code when some condition occursxx
OperatorsDefines behavior for class when instances are used within expressions using standard operatorspublicstatic
ConstructorsMethod that is called when an instance of the class is createdxx
DestructorsMethod that is automatically called by the garbage collector before an object’s memory is released

TypesNested type declared inside the classxx