年前最值得纪念的代码。

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.

 

posted @ 2023-01-18 15:15  liskov_design  阅读(15)  评论(0编辑  收藏  举报