public override int GetHashCode()
        {
            int hash = 1;

            if (debitAmount_ != null)
            {
                hash ^= DebitAmount.GetHashCode();
            }
            if (creditAmount_ != null)
            {
                hash ^= CreditAmount.GetHashCode();
            }
            if (Narration.Length != 0)
            {
                hash ^= Narration.GetHashCode();
            }
            if (account_ != null)
            {
                hash ^= Account.GetHashCode();
            }
            if (AccountName.Length != 0)
            {
                hash ^= AccountName.GetHashCode();
            }
            if (AccountType != 0)
            {
                hash ^= AccountType.GetHashCode();
            }
            if (entityId_ != null)
            {
                hash ^= EntityId.GetHashCode();
            }
            return(hash);
        }
Beispiel #2
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = BatchNo;
         hashCode = (hashCode * 397) ^ TranDate.GetHashCode();
         hashCode = (hashCode * 397) ^ DebitAmount.GetHashCode();
         hashCode = (hashCode * 397) ^ CreditAmount.GetHashCode();
         hashCode = (hashCode * 397) ^ ReceiptNo;
         hashCode = (hashCode * 397) ^ CheckNo;
         hashCode = (hashCode * 397) ^ SocSecNo;
         return(hashCode);
     }
 }