添加数据:
Dictionary<uint, uint> dtDicMessage = new Dictionary<uint, uint>(); dtDicMessage.Add(1,1); if (dtDicMessage.ContainsKey(1)) { dtDicMessage[1] = 2; } else { dtDicMessage.Add(2, 1); }
字典浅析
原文:https://www.cnblogs.com/shenhuawen/p/15308009.html