[C#]Dictionary foreach


KeyValuePair 를 이용한다


            Dictionary<String, Object> dic = new Dictionary<String, object>();
            dic.Add("String0", true);
            dic.Add("String1", 13);

            foreach (KeyValuePair<String, Object> p in dic)
            {
                Console.WriteLine(p);
            }

Yamecoder 야매코더_
C# 2010.12.04 03:46
Powerd by Tistory, designed by criuce
rss