The members of a class are the members declared in the class and the members inherited from the base class (except for class object
which has no base class). The members inherited from the base class include the constants, fields, methods, properties, events, indexers, operators, and types of the base class, but not the constructors, destructors, and static constructors of the base class. Base class members are inherited without regard to their accessibility.
A class declaration may contain declarations of constants, fields, methods, properties, events, indexers, operators, constructors, destructors, static constructors, and types.
The members of object
and string
correspond directly to the members of the class types they alias:
object
are the members of the System.Object
class.string
are the members of the System.String
class.