Dictionary<string, string> test = new Dictionary<string, string>();
test.Add("userName", "jiou");
test.Add("u2", "xx");
foreach (var dic in test)
{
Console.Write("key: {0}\nvalue: {1}\n", dic.Key, dic.Value);
}
循环dictionary
最新推荐文章于 2024-02-12 11:06:08 发布