Exemple #1
0
 public override bool Equals(System.Object otherAuthor)
 {
     if (!(otherAuthor is Author))
     {
         return(false);
     }
     else
     {
         Author newAuthor    = (Author)otherAuthor;
         bool   idEquality   = this.GetAuthorId().Equals(newAuthor.GetAuthorId());
         bool   nameEquality = this.GetAuthorName().Equals(newAuthor.GetAuthorName());
         return(idEquality && nameEquality);
     }
 }