示例#1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (kindCase_ == KindOneofCase.BytesList)
            {
                hash ^= BytesList.GetHashCode();
            }
            if (kindCase_ == KindOneofCase.FloatList)
            {
                hash ^= FloatList.GetHashCode();
            }
            if (kindCase_ == KindOneofCase.Int64List)
            {
                hash ^= Int64List.GetHashCode();
            }
            hash ^= (int)kindCase_;
            return(hash);
        }
示例#2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (kindCase_ == KindOneofCase.BytesList)
            {
                hash ^= BytesList.GetHashCode();
            }
            if (kindCase_ == KindOneofCase.FloatList)
            {
                hash ^= FloatList.GetHashCode();
            }
            if (kindCase_ == KindOneofCase.Int64List)
            {
                hash ^= Int64List.GetHashCode();
            }
            hash ^= (int)kindCase_;
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }