Get Array length in long in CSharp
Description
The following code shows how to get Array length in long.
Example
using System;/*www . j a v a 2s. c o m*/
public class SamplesArray
{
public static void Main()
{
Array MyArray1 = Array.CreateInstance(typeof(int), 5);
Console.WriteLine( MyArray1.GetLongLength(0));
}
}
The code above generates the following result.