110,531
社区成员
发帖
与我相关
我的任务
分享
public static Hashtable GetHashTable(DataRow row)
{
try
{
if (row!=null)
{
Hashtable hash = new Hashtable();
for (int i = 0; i < row.Table.Columns.Count; i++)
{
hash.Add(row.Table.Columns[i].ColumnName, Conver.CString(row[i]));
}
return hash;
}
else
{
return null;
}
}
catch
{
return null;
}
}