数据字典的简单运用

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["常量值"];

posted @ 2021-11-19 16:48  一起看海吗  阅读(80)  评论(0)    收藏  举报