public override int GetHashCode() { unchecked { var hashCode = SmallIcon != null?SmallIcon.GetHashCode() : 0; hashCode = hashCode * 397 ^ (Icon != null ? Icon.GetHashCode() : 0); hashCode = hashCode * 397 ^ (Featured != null ? Featured.GetHashCode() : 0); hashCode = hashCode * 397 ^ (Background != null ? Background.GetHashCode() : 0); hashCode = hashCode * 397 ^ (CoverArt != null ? CoverArt.GetHashCode() : 0); hashCode = hashCode * 397 ^ (Decal != null ? Decal.GetHashCode() : 0); return(hashCode); } }
public override int GetHashCode() { var hash = 13; var hashFactor = 7; hash = Id.GetHashCode(hash, hashFactor); hash = Artist.GetHashCode(hash, hashFactor); hash = Genre.GetHashCode(hash, hashFactor); hash = hash * hashFactor + Year.GetHashCode(); hash = hash * hashFactor + Rating.GetHashCode(); hash = hash * hashFactor + Starred.GetHashCode(); hash = hash * hashFactor + AlbumArtSize.GetHashCode(); hash = CoverArt.GetHashCode(hash, hashFactor); hash = hash * hashFactor + Child.GetHashCode(); return(hash); }