.NET 源码解析
楠木大哥
这个作者很懒,什么都没留下…
展开
-
HashSet<T> 源码解析
支持泛型,基础元素结构: internal struct Slot { internal int hashCode; // Lower 31 bits of hash code, -1 if unused internal T value; internal int next; // Index of next entry, -1 if last } 其 add 方法如原创 2017-08-03 00:03:24 · 263 阅读 · 0 评论 -
HashTable 源码分析
基础元素结构如下: // The hash table data. // This cannot be serialised private struct bucket { public Object key; public Object val; public int hash_coll; // Store hash code; sign bit means there was a原创 2017-08-03 15:43:00 · 424 阅读 · 0 评论