ECMA-334 C# Language Specification19.1: Array types |
An array type is written as a non-array-type
followed by one or more rank-specifiers:
non-array-type
rank-specifiers
type
rank-specifier
rank-specifiers
rank-specifier
[
dim-separators
opt ]
,
dim-separators
,
A non-array-type
is any type that is not itself an array-type
.
The rank of an array type is given by the leftmost rank-specifier
in the array-type: A rank-specifier
indicates that the array is an array with a rank of one plus the number of "," tokens in the rank-specifier
.
The element type of an array type is the type that results from deleting the leftmost rank-specifier:
In effect, the rank-specifier
s are read from left to right before the final non-array element type.
At run-time, a value of an array type can be null or a reference to an instance of that array type.
In This Section: