List<Dictionary<string, string>> list = new List<Dictionary<string, string>>(); Dictionary<string, string> dict = new Dictionary<string, string>(); dict.Add("key1", "value1"); list.Add(dict);
或者
List<Dictionary<string, string>> list = new List<Dictionary<string, string>>();
list.Add(new Dictionary<string, string>() { {"key1", "value1"}, {"key2", "value2"} });