david's daily developer note

C# Dictionary foreach 본문

[Develop] Language/C#

C# Dictionary foreach

mouse-david 2011. 4. 8. 21:46
728x90

Dictionary foreach 루프 정리

Dictionary<string, int> bots = new Dictionary<string, int>();

foreach (KeyValuePair<string, int> pair in bots) {
    string key = pair.Key;
    int value = pair.Value;
}

 

728x90