c# - How to get the length of an array

Array get length

.Net framework Array.Length property allow us to get a 32-bit integer that represents the total number of elements
in all the dimension of the Array. this array Length property exists in System namespace.

the array Length property return value data type is System.int32. this integer value
represents the total number of elements in all the dimension
of the array. this property return zero, if there are no elements exists in the array.

array Length property throw OverFlowException exception, if the array is multidimensional and contains more than
MaxValue elements. MaxValue represents the largest possible value of an Int32. this field is constant.

the following asp.net c# example code demonstrate us how can we get an array length programmatically
at run time in an asp.net application.