public override int GetHashCode()
        {
            int hash = 1;

            if (TestInt != 0)
            {
                hash ^= TestInt.GetHashCode();
            }
            if (TestFloat != 0F)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(TestFloat);
            }
            if (TestDouble != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(TestDouble);
            }
            if (TestBool != false)
            {
                hash ^= TestBool.GetHashCode();
            }
            hash ^= testIntArrays_.GetHashCode();
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
示例#2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (TestNum != 0)
            {
                hash ^= TestNum.GetHashCode();
            }
            if (TestFloat != 0F)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(TestFloat);
            }
            if (TestString.Length != 0)
            {
                hash ^= TestString.GetHashCode();
            }
            if (TestBool != false)
            {
                hash ^= TestBool.GetHashCode();
            }
            hash ^= testList_.GetHashCode();
            hash ^= TestDic.GetHashCode();
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }