public override bool Equals(object obj) { var statement = (Statement)obj; return(Date.Equals(statement.Date) && SenderOrReceiver.Equals(statement.SenderOrReceiver) && Subject.Equals(statement.Subject) && Amount.Equals(statement.Amount) && BankId.Equals(statement.BankId)); }
public override string ToString() { return($"{Date.ToString("dd.MM.yyyy")}§{SenderOrReceiver.Trim()}§{Subject.Trim()}§{Amount}§{BankId}"); }
public override int GetHashCode() { return(Date.GetHashCode() + SenderOrReceiver.GetHashCode() + Subject.GetHashCode() + Amount.GetHashCode() + BankId.GetHashCode()); }