int array[] array;
int index;
public void func(){
for(int i; i < array.Length;i++){
index++;
}
Console.Write(index);
}
public int[] number = new int[2 /* the number here declares the lenght, not the index*/ ];
int[1 /*this number here declares the index*/] = 69;
int arraylenght = YourArray.Length;
int[] numbers = {66,87,34,23,27,4};
int count = 0;
foreach(int x in numbers){
count++;
}
Console.WriteLine(count);