title: Index out of range exception in 2D Array (C#)
body: <pre><code>char[,] map = new char[10, 20];
  
  for (int i = 0; i &lt; map.GetLength(0); i++)
  {
      for (int j = 0; i &lt; map.GetLength(1); j++)
          map[i, j] = '.';
  }
  </code></pre>
  
  <p>I just simply want to make all the elements of map[i,j] to be a point , but always when I try to run it the compiler says: Index out of range exception. Maybe it's a stupid question but I had to ask it.</p>