c# - Int32 的 GetHashCode() 是如何实现的?

标签 c# .net clr

我找遍了所有地方,但我找不到任何东西。任何人都可以阐明这一点吗?

最佳答案

根据 Reflector:

public override int GetHashCode()
{
    return this;
}

有道理,是吗?

关于c# - Int32 的 GetHashCode() 是如何实现的?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3893782/

相关文章:

c# - C#中的新修饰符

c# - 使用 GMap.NET 显示流量

.net - WPF 中的圆括号在从右到左的流向中未正确显示

c# - HasThis 和 ExplicitThis 调用约定

c# - CLR 中的错​​误? CLR 执行引擎失败

c# - 如何检索 Viewbox/Canvas/Path 元素以进行编码 UI 测试?

c# - DequeueReusableCell 仅在 iPhone 4S 上使应用程序崩溃

c# - 上传到 Azure Block Blob 时如何选择最佳 block 大小

c# - "Property elements cannot be in the middle of an element' s 内容。”WPF 应用程序中的错误

c# - System.Math.Abs​​() 调用 native 方法 System.AppDomain.GetId()?