字典浅析

添加数据:

Dictionary<uint, uint> dtDicMessage = new Dictionary<uint, uint>();
                dtDicMessage.Add(1,1);
                if (dtDicMessage.ContainsKey(1))
                {
                    dtDicMessage[1] = 2;
                }
                else
                {
                    dtDicMessage.Add(2, 1);
                }

 

posted @ 2021-09-18 11:31  SHW03  阅读(17)  评论(0编辑  收藏  举报