title: C# Alternative To Generic Datatable
body: <p>Please see the following:</p>
  
  <pre><code>public static DataTable GetSqlDataTable(string connStr, string strSqlStatement)
  {
      DataTable dt = new DataTable();
      SqlDataAdapter dA = new SqlDataAdapter();
  
      try
      {
          SqlConnection conn = new SqlConnection(connStr);
          dA.SelectCommand = new SqlCommand(strSqlStatement, conn);
          dA.Fill(dt);
          return dt;
      }
      catch (Exception exc)
      {
          throw exc;
      }
  }
  </code></pre>
  
  <p>How can I use an <code>object</code> instead of a generic data container to avoid these generic data tables?</p>