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

        if (TxnId.Length != 0)
        {
            hash ^= TxnId.GetHashCode();
        }
        if (Type != 0)
        {
            hash ^= Type.GetHashCode();
        }
        if (SortCode.Length != 0)
        {
            hash ^= SortCode.GetHashCode();
        }
        if (Account.Length != 0)
        {
            hash ^= Account.GetHashCode();
        }
        if (Name.Length != 0)
        {
            hash ^= Name.GetHashCode();
        }
        if (Address.Length != 0)
        {
            hash ^= Address.GetHashCode();
        }
        if (IsPseudo != false)
        {
            hash ^= IsPseudo.GetHashCode();
        }
        if (IsFoundDirect != false)
        {
            hash ^= IsFoundDirect.GetHashCode();
        }
        if (DiscoveredAccountId.Length != 0)
        {
            hash ^= DiscoveredAccountId.GetHashCode();
        }
        hash ^= accounts_.GetHashCode();
        return(hash);
    }
示例#2
0
 public bool Equals(TransactionModel other)
 {
     return(TxnId.Xor(other.TxnId));
 }