Check out example codes for "c# length of array". It will help you in understanding the concepts better.

Code Example 1

// declares a 1D Array of string. 
string[] weekDays; 
// allocating memory for days. 
weekDays = new string[] {"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"};
// Display length of array.
Console.Write(weekDays.Length);

Learn ReactJs, React Native from akashmittal.com