© { JSL }
29
Text Box: System.Array
System.Array
·all array types inherit from System.Array
namespace System
{
    public class Array
    {  
        protected Array();
        ...
        // readonly properties
        public int Length { get; }
        public int Rank   { get; }
        // instance methods
        public int GetLength(int);
        // static methods
        public static void Clear(Array, int, int);
        ...
    }
}
int[,] cosmic = { {1,2,3}, {4,5,6} };
Console.Write(cosmic.Length);
Console.Write(cosmic.Rank);
Console.Write(cosmic.GetLength(0));
Console.Write(cosmic.GetLength(1));
6223