- 博客(1)
- 资源 (1)
- 收藏
- 关注
原创 GetHashCode Equals 与 Dictionary , Hash , List 的关系
Dictionary , HashSet , List 都可以看到 Contains 之类的函数。 比如 Dictionary.ContainsKey( keyTest ) 函数首先调用 keyTest.GetHashCode 比较是否已经有这样一个hashCode, 如果有,则直接返回true , 如果没有,还不能断定必然不存在这样一个key , 因为hashcode是有冲突的
2012-08-27 17:57:50 654
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人