C#/기초

[C#] Dictionary<string,List<string>> MyDict

딸기우유중독 2023. 8. 30. 10:07
Dictionary<string, List<string>> MyDict = new Dictionary<string, List<string>>();
        // 새로 추가
        MyDict.Add(key, new List<string> {"value"});
        
        // 기존 key에 value 추가
        MyDict[key]/Add("value");

 

 

728x90