1. 程式人生 > >資料結構 + 設計模式 知識點總結

資料結構 + 設計模式 知識點總結

字典 --> Key : Value 字典是無序的 不存在插入和索引 Dictionary<string,string> myDictionary = new Dictionary<string,string>(); myDictionary.Add(Key,Value); //新增進字典 myDictionary.Remove(Key); //刪除對應的Key鍵 若為false 則無該Key鍵 myDictionary[Key] = x; //修改key對應的value值 遍歷字典必須用foreach PlayerPrefs --> 變相的字典**