相等性比较
用于自定义对象相等性比较和hash码计算的机制。
1 | // \runtime\src\libraries\System.Private.CoreLib\src\System\Collections\IEqualityComparer.cs |
对应的泛型接口:
1 | // \runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\IEqualityComparer.cs |
基于相等性的比较:
1 | // \runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\IStructuralEquatable.cs |