DataSet ds = dbA.getDataSet ();
Dictionary<string, string> LayerArrayList = new Dictionary<string, string> ();
foreach (DataRow dRow in ds.Tables[0].Rows) {
// add DataRow object to ArrayList
LayerArrayList.Add ((string)dRow[0], (string)dRow[1]);
}
return LayerArrayList;
|