c# check if index exist code example Example: c# check if index exist int index = 25; if(index < array.Length) { //it exists }