コード例 #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Type != global::Protos.ChaincodeSpec.Types.Type.Undefined)
            {
                hash ^= Type.GetHashCode();
            }
            if (chaincodeId_ != null)
            {
                hash ^= ChaincodeId.GetHashCode();
            }
            if (input_ != null)
            {
                hash ^= Input.GetHashCode();
            }
            if (Timeout != 0)
            {
                hash ^= Timeout.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
コード例 #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Results.Length != 0)
            {
                hash ^= Results.GetHashCode();
            }
            if (Events.Length != 0)
            {
                hash ^= Events.GetHashCode();
            }
            if (response_ != null)
            {
                hash ^= Response.GetHashCode();
            }
            if (chaincodeId_ != null)
            {
                hash ^= ChaincodeId.GetHashCode();
            }
            if (tokenExpectation_ != null)
            {
                hash ^= TokenExpectation.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
コード例 #3
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ChaincodeId.Length != 0)
            {
                hash ^= ChaincodeId.GetHashCode();
            }
            if (TxId.Length != 0)
            {
                hash ^= TxId.GetHashCode();
            }
            if (EventName.Length != 0)
            {
                hash ^= EventName.GetHashCode();
            }
            if (Payload.Length != 0)
            {
                hash ^= Payload.GetHashCode();
            }
            return(hash);
        }
コード例 #4
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Type != 0)
            {
                hash ^= Type.GetHashCode();
            }
            if (chaincodeId_ != null)
            {
                hash ^= ChaincodeId.GetHashCode();
            }
            if (input_ != null)
            {
                hash ^= Input.GetHashCode();
            }
            if (Timeout != 0)
            {
                hash ^= Timeout.GetHashCode();
            }
            return(hash);
        }