ECMA-334: 11.2 Reference types
Microsoft .NET Framework, ASP.NET, Visual C# (CSharp, C Sharp, C-Sharp) Developer Training, Visual Studio
| C# Language Specification |
| © 2006 ECMA International |
[edit]
11.2 Reference types
A reference type is a class type, an interface type, an array type, or a delegate type.
- reference-type:
- class-type
- interface-type
- array-type
- delegate-type
- class-type:
- type-name
objectstring
- interface-type:
- type-name
- array-type:
- non-array-type rank-specifiers
- non-array-type:
- value-type
- class-type
- interface-type
- delegate-type
- type-parameter
- rank-specifiers:
- rank-specifier
- rank-specifiers rank-specifier
- rank-specifier:
[dim-separatorsopt]
- dim-separators:
,- dim-separators
,
- delegate-type:
- type-name
A reference type value is a reference to an instance of the type, the latter known as an object. The special
value null is compatible with all reference types and indicates the absence of an instance.