Exemplo n.º 1
0
 internal bool IsEditionOf(Book otherBook)
 {
     return(Title.Equals(otherBook.Title) &&
            (SubTitle?.Equals(otherBook.SubTitle) ?? otherBook.SubTitle == null) &&
            Authores.SequenceEqual(otherBook.Authores) &&
            Publisher.Equals(otherBook.Publisher));
 }
Exemplo n.º 2
0
 public override string ToString()
 {
     return($"{Title} {SubTitle ?? string.Empty} {Authores.First()} {Publisher} {Edition} {Year} {Type}");
 }