📜  c# 获取哈希码 - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:48.994000             🧑  作者: Mango

代码示例2
public override int GetHashCode()
{
    unchecked
    {
        var result = 0;
        result = (result * 397) ^ m_someVar1;
        result = (result * 397) ^ m_someVar2;
        result = (result * 397) ^ m_someVar3;
        result = (result * 397) ^ m_someVar4;
        return result;
    }
}