how to know lenght of int array in c# code example
Example 1: how to declare an array lenght in c#
public int[] number = new int[2 /* the number here declares the lenght, not the index*/ ];
int[1 /*this number here declares the index*/] = 69;
Example 2: c# array lenght
int arraylenght = YourArray.Length;