摘要: 添加数据: Dictionary<uint, uint> dtDicMessage = new Dictionary<uint, uint>(); dtDicMessage.Add(1,1); if (dtDicMessage.ContainsKey(1)) { dtDicMessage[1] = 阅读全文
posted @ 2021-09-18 11:31 SHW03 阅读(15) 评论(0) 推荐(0) 编辑
摘要: 1.list会不上线的增加,增加硬件内存,需要剔除数据: List<int> erf = new List<int> {1,2,3,4,5 }; if (erf.Count>3) { erf.RemoveAt(0); //erf.RemoveRange(0,2); } 2.remove不能移除类或者 阅读全文
posted @ 2021-09-18 10:50 SHW03 阅读(32) 评论(0) 推荐(0) 编辑