Dictionary用“集合初始值设定项”进行初始化

System.Collections.Generic.Dictionary<int, string> dic = new Dictionary<int, string>()
            {
                 {1,"a"},
                 {2,"b"},
            };

原文地址:https://www.cnblogs.com/cppss/p/3741076.html