废话不说。直接上代码。
private static HashSet<string> hashSetLocationIds = new HashSet<string>(); string id = string.Format("{0}{1}{2}{3}{4}", 1,2,3,4).md5(); if (hashSetLocationIds.Contains(id)) return; if (hashSetLocationIds.Count > 1x) hashSetLocationIds.Clear(); hashSetLocationIds.Add(id); //you business code
2CPU+2G内存的低端入门级服务器配置。
end
标签:string,Dictionary,HashSet,绝大,hashSetLocationIds,id From: https://www.cnblogs.com/IBPM/p/17057896.html