// Make an int array
int[] myIntArray;
// Put stuff inside it
myIntArray = new int[] { 0, 1, 10, 300, 5000 };
// Print out the length (How many numbers are in myIntArray)
Console.WriteLine(myIntArray.Length);
int array[] array;
int index;
public void func(){
for(int i; i < array.Length;i++){
index++;
}
Console.Write(index);
}
int arraylenght = YourArray.Length;
string[] arr = {"foo", "bar"}
Console.WriteLine(arr.Length);
// >> 2