title: Call Dataset property in foreach loop
body: <p>I have a data set that that I would like to call in a foreach loop that is a property. I do not want to use .table["xxx"]</p>
  
  <pre><code>public DataSet run(string query)
  { 
      SqlDataAdapter adapter = new SqlDataAdapter();
      adapter.SelectCommand = new SqlCommand(query, conn);
      adapter.Fill(dataset);
      return dataset;
  }
  
  string query = "select * from table";
  foreach (DataRow row in  run(query))
  {
  //
  }
  </code></pre>