首页 > 代码库 > C# Dictionary的遍历

C# Dictionary的遍历

foreach (KeyValuePair<string, string> kvp in dic)
{
          Console.WriteLine("key:{0},value:{1}", kvp.Key, kvp.Value);
}

 

C# Dictionary的遍历