private static HashSet<string> hashSetLocationIds = new HashSet<string>(); if (hashSetLocationIds.Contains(id)) return; if (hashSetLocationIds.Count > 10) hashSetLocationIds.Clear(); hashSetLocationIds.Add(id);
Happy New Year For Every One.
标签:HashSet,代码,年前,值得纪念,hashSetLocationIds,id From: https://www.cnblogs.com/IBPM/p/17059889.html