首页 > 其他分享 >年前最值得纪念的代码。

年前最值得纪念的代码。

时间:2023-01-18 15:22:42浏览次数:26  
标签:HashSet 代码 年前 值得纪念 hashSetLocationIds id

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

相关文章