§using System; using System.Data;
§namespace Table
§{class Class1{static void Main() {
§ int
i;
§ DataSet
ds=new DataSet();
§ DataTable
test=new DataTable("Test");
§ test.Columns.Add(new
DataColumn("test",typeof(int)));
§ ds.Tables.Add(test);
§ for
(i=1;i<1000;i++) {DataRow r=ds.Tables["Test"].NewRow();
§
r["test"]=i; ds.Tables["Test"].Rows.Add(r);};
§
foreach(DataRow theRow in ds.Tables["Test"].Rows) {Console.WriteLine(theRow["test"]);};
§ }
§}}
§