Пример #1
0
    public override int GetHashCode()
    {
        int hash = 1;

        if (Header.Length != 0)
        {
            hash ^= Header.GetHashCode();
        }
        if (HeaderSignature.Length != 0)
        {
            hash ^= HeaderSignature.GetHashCode();
        }
        hash ^= batches_.GetHashCode();
        if (_unknownFields != null)
        {
            hash ^= _unknownFields.GetHashCode();
        }
        return(hash);
    }
Пример #2
0
    public override int GetHashCode()
    {
        int hash = 1;

        if (Header.Length != 0)
        {
            hash ^= Header.GetHashCode();
        }
        if (HeaderSignature.Length != 0)
        {
            hash ^= HeaderSignature.GetHashCode();
        }
        hash ^= transactions_.GetHashCode();
        if (Trace != false)
        {
            hash ^= Trace.GetHashCode();
        }
        if (_unknownFields != null)
        {
            hash ^= _unknownFields.GetHashCode();
        }
        return(hash);
    }