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

            if (StringField.Length != 0)
            {
                hash ^= StringField.GetHashCode();
            }
            if (Int64Field != 0L)
            {
                hash ^= Int64Field.GetHashCode();
            }
            if (Uint32Field != 0)
            {
                hash ^= Uint32Field.GetHashCode();
            }
            hash ^= repeatedDoubleField_.GetHashCode();
            if (EnumField != global::Plexus.Interop.Testing.Generated.EchoRequest.Types.SubEnum.ValueOne)
            {
                hash ^= EnumField.GetHashCode();
            }
            if (subMessageField_ != null)
            {
                hash ^= SubMessageField.GetHashCode();
            }
            hash ^= repeatedSubMessageField_.GetHashCode();
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Beispiel #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (StringField.Length != 0)
            {
                hash ^= StringField.GetHashCode();
            }
            if (Int64Field != 0L)
            {
                hash ^= Int64Field.GetHashCode();
            }
            if (Uint32Field != 0)
            {
                hash ^= Uint32Field.GetHashCode();
            }
            hash ^= repeatedDoubleField_.GetHashCode();
            if (EnumField != 0)
            {
                hash ^= EnumField.GetHashCode();
            }
            if (subMessageField_ != null)
            {
                hash ^= SubMessageField.GetHashCode();
            }
            hash ^= repeatedSubMessageField_.GetHashCode();
            return(hash);
        }