public override int GetHashCode() { unchecked { var hashCode = (Isbn != null ? Isbn.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Authors != null ? Authors.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (PubCity != null ? PubCity.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (PubName != null ? PubName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ PubYear.GetHashCode(); hashCode = (hashCode * 397) ^ (Name != null ? Name.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Note != null ? Note.GetHashCode() : 0); hashCode = (hashCode * 397) ^ CountPages; return(hashCode); } }
public override int GetHashCode() { unchecked { var hashCode = Number; hashCode = (hashCode * 397) ^ (Issn != null ? Issn.GetHashCode() : 0); hashCode = (hashCode * 397) ^ Date.GetHashCode(); hashCode = (hashCode * 397) ^ (PubCity != null ? PubCity.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (PubName != null ? PubName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ PubYear.GetHashCode(); hashCode = (hashCode * 397) ^ (Name != null ? Name.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Note != null ? Note.GetHashCode() : 0); hashCode = (hashCode * 397) ^ CountPages; return(hashCode); } }