arr.Length c# or length() code example
Example 1: length of arr c#
string[] arr = {"foo", "bar"}
Console.WriteLine(arr.Length);
// >> 2
Example 2: c# array lenght
int arraylenght = YourArray.Length;
string[] arr = {"foo", "bar"}
Console.WriteLine(arr.Length);
// >> 2
int arraylenght = YourArray.Length;