linq 取DataTable某两列数据返回给一个Dictionary<int,int>

 dic = dt.Rows.Cast<DataRow>().ToDictionary(
                        x => Convert.ToInt32(x["Key"]), x => Convert.ToInt32(x["Value"]));
原文地址:https://www.cnblogs.com/nora/p/8064279.html