title: Cannot declare object in jagged array
body: <p>So I'm trying to make an application that calculates the amount of time that you take in one metro transportation , so i make a station class and in the normal form i make a jagged array containing three rows (each row represents a different metro line) so i declare the array like this : <code>station[][] lines = new station[3][];</code>and then i declare the rows like this </p>
  
  <pre><code>lines[0] = new station[34];
  lines[1] = new station[19];
  lines[2] = new station[35];
  </code></pre>
  
  <p>and i declare the name and value inside the objects in the jagged array like this:</p>
  
  <pre><code>lines[0][0].name = "stationname";
  lines[0][0].number = 1;`
  </code></pre>
  
  <p>but when i run the program it gives me a <code>NullReferenceException</code>,
  I know that i didn't declare the objects right(i think) and I don't know how to declare them right.
  Well, here's a more complete code sample :</p>
  
  <pre><code>        station[][] lines = new station[3][];
          lines[0] = new station[34];
          lines[0][0] = new station {name = "حلوان", number = 1 };
          lines[0][0].number = 1;
          lines[0][1].name = "عين حلوان";
          lines[0][1].number = 2;
          lines[0][2].name = "جامعة حلوان";
          lines[0][2].number = 3;
          lines[0][3].name = "وادى حوف";
          lines[0][3].number = 4;
          lines[0][4].name = "حدائق حلوان";
          lines[0][4].number = 5;
  </code></pre>
  
  <p>Row Two</p>
  
  <pre><code>            lines[1] = new station[19];
          lines[1][0].name = "المنيب";
          lines[1][0].number = 36;
          lines[1][1].name = "ساقية مكى";
          lines[1][1].number = 37;
          lines[1][2].name = "ضواحى الجيزة";
          lines[1][2].number = 38;
          lines[1][3].name = "محطة الجيزة";
          lines[1][3].number = 39;
          lines[1][4].name = "فيصل";
          lines[1][4].number = 40;
          lines[1][5].name = "جامعة القاهرة";
          lines[1][5].number = 41;
  </code></pre>
  
  <p>Row 3</p>
  
  <pre><code>            lines[2] = new station[35];
          lines[2][0].name = "مطار القاهرة";
          lines[2][0].number =54;
          lines[2][1].name = "السلام";
          lines[2][1].number = 55;
          lines[2][2].name = "عمر بن الخطاب";
          lines[2][2].number = 56;
          lines[2][3].name = "قباء";
          lines[2][3].number = 57;
          lines[2][4].name = "النزهة٢";
          lines[2][4].number = 58;
          lines[2][5].name = "النزهة١";
          lines[2][5].number = 59;
  </code></pre>