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