public override int GetHashCode() { unchecked { var hashCode = (Id != null ? Id.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (ArtistName != null ? ArtistName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ DateOfShow.GetHashCode(); return(hashCode); } }
protected bool Equals(Show other) { return(Id == other.Id || (ArtistName == other.ArtistName && DateOfShow.Equals(other.DateOfShow))); }