how to get the length of a array in C# code example
Example 1: length of arr c#
string[] arr = {"foo", "bar"}
Console.WriteLine(arr.Length);
// >> 2
Example 2: how to declare an array lenght in c#
public int[] number = new int[2 /* the number here declares the lenght, not the index*/ ];
int[1 /*this number here declares the index*/] = 69;