title: Can you declare a DataTable as an array?
body: <pre><code>DataTable[] dt = new DataTable[2];
  
  for(i = 0; i &lt;= 1; i++)
  {
    dt[i].Columns.Add("id");
    dt[i].Columns.Add("name");
  }
  </code></pre>
  
  <p>When I run this I get:</p>
  
  <p>Object reference not set to an instance of an object.</p>
  
  <p>Can DataTable arrays be declared and used like this?</p>