예제 #1
0
        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));
        }
예제 #2
0
 public override string ToString()
 {
     return($"{Date.ToString("dd.MM.yyyy")}§{SenderOrReceiver.Trim()}§{Subject.Trim()}§{Amount}§{BankId}");
 }
예제 #3
0
 public override int GetHashCode()
 {
     return(Date.GetHashCode() + SenderOrReceiver.GetHashCode() +
            Subject.GetHashCode() + Amount.GetHashCode() + BankId.GetHashCode());
 }