ECMA-334: 10.4.4 Class members
Microsoft .NET Framework, ASP.NET, Visual C# (CSharp, C Sharp, C-Sharp) Developer Training, Visual Studio
| C# Language Specification |
| © 2006 ECMA International |
10.4.4 Class members
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
instance constructors, finalizers, and static constructors of the base class. Base class members are inherited
without regard to their accessibility.
A class declaration can contain declarations of constants, fields, methods, properties, events, indexers, operators, instance constructors, finalizers, static constructors, and types.
The members of object and string correspond directly to the members of the class types they alias:
- The members of object are the members of the
System.Objectclass.
- The members of string are the members of the
System.Stringclass.