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

            if (HasBoolValue)
            {
                hash ^= BoolValue.GetHashCode();
            }
            if (HasIntValue)
            {
                hash ^= IntValue.GetHashCode();
            }
            if (HasFloatValue)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(FloatValue);
            }
            if (HasStringValue)
            {
                hash ^= StringValue.GetHashCode();
            }
            if (HasBlobValue)
            {
                hash ^= BlobValue.GetHashCode();
            }
            if (HasUintValue)
            {
                hash ^= UintValue.GetHashCode();
            }
            hash ^= (int)typeCase_;
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Пример #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (HasBoolValue)
            {
                hash ^= BoolValue.GetHashCode();
            }
            if (HasIntValue)
            {
                hash ^= IntValue.GetHashCode();
            }
            if (HasFloatValue)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(FloatValue);
            }
            if (HasStringValue)
            {
                hash ^= StringValue.GetHashCode();
            }
            if (HasBlobValue)
            {
                hash ^= BlobValue.GetHashCode();
            }
            if (HasMessageValue)
            {
                hash ^= MessageValue.GetHashCode();
            }
            if (HasFourccValue)
            {
                hash ^= FourccValue.GetHashCode();
            }
            if (HasUintValue)
            {
                hash ^= UintValue.GetHashCode();
            }
            if (HasEntityIdValue)
            {
                hash ^= EntityIdValue.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Пример #3
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (BoolValue != false)
            {
                hash ^= BoolValue.GetHashCode();
            }
            if (IntValue != 0L)
            {
                hash ^= IntValue.GetHashCode();
            }
            if (FloatValue != 0D)
            {
                hash ^= FloatValue.GetHashCode();
            }
            if (StringValue.Length != 0)
            {
                hash ^= StringValue.GetHashCode();
            }
            if (BlobValue.Length != 0)
            {
                hash ^= BlobValue.GetHashCode();
            }
            if (MessageValue.Length != 0)
            {
                hash ^= MessageValue.GetHashCode();
            }
            if (FourccValue.Length != 0)
            {
                hash ^= FourccValue.GetHashCode();
            }
            if (UintValue != 0UL)
            {
                hash ^= UintValue.GetHashCode();
            }
            if (entityIdValue_ != null)
            {
                hash ^= EntityIdValue.GetHashCode();
            }
            return(hash);
        }