コード例 #1
0
 public bool Equals(RawTransaction other) => Nonce == other.Nonce &&
 Signer.SequenceEqual(other.Signer) &&
 PublicKey.SequenceEqual(other.PublicKey) &&
 GenesisHash.SequenceEqual(other.GenesisHash) &&
 UpdatedAddresses.SequenceEqual(
     other.UpdatedAddresses) &&
 Timestamp == other.Timestamp &&
 Signature.SequenceEqual(other.Signature) &&
 Actions.SequenceEqual(other.Actions);
コード例 #2
0
        public bool Equals(RawTransaction other)
        {
            bool eq = Signer.SequenceEqual(other.Signer) &&
                      PublicKey.SequenceEqual(other.PublicKey) &&
                      UpdatedAddresses.SequenceEqual(other.UpdatedAddresses) &&
                      Timestamp == other.Timestamp &&
                      Actions.SequenceEqual(other.Actions);

            if (Signature == null)
            {
                return(eq && other.Signature == null);
            }
            else
            {
                return(eq && Signature.SequenceEqual(other.Signature));
            }
        }