2009-10-20 Dictionaryでforeach .Net foreach (string key in dic.Keys) { Console.WriteLine("{0} : {1}", key, dic[key]); }