Beispiel #1
0
 public override bool Equals(System.Object otherBook)
 {
     if (!(otherBook is Book))
     {
         return(false);
     }
     else
     {
         Book newBook             = (Book)otherBook;
         bool idEquality          = (this.GetId() == newBook.GetId());
         bool descriptionEquality = (this.GetBookTitle() == newBook.GetBookTitle());
         return(idEquality && descriptionEquality);
     }
 }