コード例 #1
0
        /// <summary>
        /// Returns true if InputSignaturesTimestamp instances are equal
        /// </summary>
        /// <param name="other">Instance of InputSignaturesTimestamp to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(InputSignaturesTimestamp other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Hash == other.Hash ||
                     Hash != null &&
                     Hash.Equals(other.Hash)
                     ) &&
                 (
                     HashAlgo == other.HashAlgo ||
                     HashAlgo != null &&
                     HashAlgo.Equals(other.HashAlgo)
                 ) &&
                 (
                     Nonce == other.Nonce ||
                     Nonce != null &&
                     Nonce.Equals(other.Nonce)
                 ) &&
                 (
                     ClientData == other.ClientData ||
                     ClientData != null &&
                     ClientData.Equals(other.ClientData)
                 ));
        }
コード例 #2
0
        /// <summary>
        /// Returns true if InputSignaturesSignhash instances are equal
        /// </summary>
        /// <param name="other">Instance of InputSignaturesSignhash to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(InputSignaturesSignhash other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     CredentialID == other.CredentialID ||
                     CredentialID != null &&
                     CredentialID.Equals(other.CredentialID)
                     ) &&
                 (
                     SAD == other.SAD ||
                     SAD != null &&
                     SAD.Equals(other.SAD)
                 ) &&
                 (
                     Hash == other.Hash ||
                     Hash != null &&
                     Hash.Equals(other.Hash)
                 ) &&
                 (
                     HashAlgo == other.HashAlgo ||
                     HashAlgo != null &&
                     HashAlgo.Equals(other.HashAlgo)
                 ) &&
                 (
                     SignAlgo == other.SignAlgo ||
                     SignAlgo != null &&
                     SignAlgo.Equals(other.SignAlgo)
                 ) &&
                 (
                     SignAlgoParams == other.SignAlgoParams ||
                     SignAlgoParams != null &&
                     SignAlgoParams.Equals(other.SignAlgoParams)
                 ) &&
                 (
                     ClientData == other.ClientData ||
                     ClientData != null &&
                     ClientData.Equals(other.ClientData)
                 ));
        }