Мой любимый подход такой (хотя я думаю, что любое решение, данное до сих пор, поможет вам):
// set up the dictionary
Dictionary<string, string> dictionary = new Dictionary<string, string>();
dictionary.Add("A key", "Some value");
dictionary.Add("Another key", "Some other value");
// loop over it
Dictionary<string, string>.Enumerator enumerator = dictionary.GetEnumerator();
while (enumerator.MoveNext())
{
Console.WriteLine(enumerator.Current.Key + "=" + enumerator.Current.Value);
}