Table of Contents 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 Notes DownloadECMA-334 C# Language Specification 19 Arrays 19.1 Array types
Paragraph 11 An array type is written as a non-array-type followed by one or more rank-specifiers: array-type : non-array-type rank-specifiers non-array-type : type rank-specifiers : rank-specifier rank-specifiers rank-specifier rank-specifier : [ dim-separatorsopt ] dim-separators : , dim-separators ,
Paragraph 21 A non-array-type is any type that is not itself an array-type.
Paragraph 31 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.
Paragraph 41 The element type of an array type is the type that results from deleting the leftmost rank-specifier:
Paragraph 51 In effect, the rank-specifiers are read from left to right before the final non-array element type. [Example: The type int[,,][,] is a single-dimensional array of three-dimensional arrays of two-dimensional arrays of int. end example]
Paragraph 61 At run-time, a value of an array type can be null or a reference to an instance of that array type.
- 2 An array type of the form T[R] is an array with rank R and a non-array element type T.
- 3 An array type of the form T[R][R1]...[RN] is an array with rank R and an element type T[R1]...[RN].
|Jagger Software Ltd|
|Company # 4070126|
|VAT # 762 5213 42|