Jon Jagger
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 Specificationpreviousnextprevious at this levelnext at this level 19 Arrays Paragraph 11 An array is a data structure that contains a number of variables which are accessed through computed indices. 2 The variables contained in an array, also called the elements of the array, are all of the same type, and this type is called the element type of the array. Paragraph 21 An array has a rank which determines the number of indices associated with each array element. 2 The rank of an array is also referred to as the dimensions of the array. 3 An array with a rank of one is called a single-dimensional array. 4 An array with a rank greater than one is called a multi-dimensional array. 5 Specific sized multi-dimensional arrays are often referred to as two-dimensional arrays, three-dimensional arrays, and so on. 6 Each dimension of an array has an associated length which is an integral number greater than or equal to zero. 7 The dimension lengths are not part of the type of the array, but rather are established when an instance of the array type is created at run-time. 8 The length of a dimension determines the valid range of indices for that dimension: For a dimension of length N, indices can range from 0 to N -1 inclusive. 9 The total number of elements in an array is the product of the lengths of each dimension in the array. 10 If one or more of the dimensions of an array have a length of zero, the array is said to be empty. Paragraph 31 The element type of an array can be any type, including an array type.
{ JSL }
Jagger Software Ltd
Company # 4070126
VAT # 762 5213 42
Valid HTML 4.01Valid CSS