0
string[] batsmen_headers = new string[15];

public void Headers()
{
    batsmen_headers[0] = "Player|Mat|Inns|NO|Runs|Best|Average|Bls Fcd|Strike Rt|100s|50s|0s|4s|6s\n";
}        

I'm writing this code in C#, and I don't understand why but this is showing "IndexOutOfRangeException" error when initializing. Only this array causing problem, other arrays in code working absolutely fine.

Watch here: https://dotnetfiddle.net/3TatGg

ohmfischer
  • 21
  • 5

0 Answers0