数据字典的简单运用

Dictionary<object, DataTable> StatisticalResult = new Dictionary<object, DataTable>();

DataTable AccumulatedTable = new DataTable();
DataTable AccumulatedPerennialValueTable = new DataTable();

StatisticalResult.Add("统计结果", AccumulatedTable);
StatisticalResult.Add("常量值", AccumulatedPerennialValueTable);

//从数据字典中取表
DataTable AccumulatedTable = dtResultDictionary["统计结果"];
DataTable AccumulatedPerennialValueTable = dtResultDictionary["常量值"];

上一篇:Datable事件


下一篇:C# 减少嵌套循环