using System;
namespace geeksforgeeks {
class GFG {
public static void Main()
{
int[, ] intarray = new int[, ] { { 1, 2 },
{ 3, 4 },
{ 5, 6 },
{ 7, 8 } };
int[, ] intarray_d = new int[4, 2] { { 1, 2 },
{ 3, 4 },
{ 5, 6 },
{ 7, 8 } };
Console.Write("Total Number of Elements in intarray: ");
Console.Write(intarray.LongLength);
Console.WriteLine("\nType of returned Length: "
+ (intarray.LongLength).GetType());
Console.Write("\nTotal Number of Elements in intarray_d: ");
Console.Write(intarray_d.Length);
Console.WriteLine("\nType of returned Length: "
+ (intarray_d.Length).GetType());
Console.Write("\nTotal Number of Elements in intarray_d: ");
Console.Write(intarray_d.LongLength);
Console.WriteLine("\nType of returned Length: "
+ (intarray_d.LongLength).GetType());
}
}
}