[C#문법] Dictionary
초기화 Dictionary dic = new Dictionary(); Dictionary dic = new Dictionary(){{key,value},{key,value}} 값할당 dic[key] = value dic.Add(key,value) foreach foreach(dtype key in dic.Keys){} foreach(dtype value in dic.value){} foreach(KeyValuePair kvp in dic){ Debug.log(kvp.Key); Debug.log(kvp.Value); } 복사 생성자 인수에 복사하고 싶은 오브젝트 지정 var dic2 = new Dictionary(dic); 기능 bool dic.Remove(key) 해당 key,value쌍 제거 dic.R..