比如: foreach (KeyValuePair kvp in dictionary) { Console.WriteLine("key={0},value={1}", kvp.Key, kvp.Value); }