public bool Equals(EpisodesModel other) { // Check whether the compared object is null. if (ReferenceEquals(other, null)) { return(false); } //Check whether the compared object references the same data. if (ReferenceEquals(this, other)) { return(true); } //Check whether the properties are equal. return(SeasonNumber.Equals(other.SeasonNumber) && EpisodeNumber.Equals(other.EpisodeNumber)); }
public bool Equals(DestinySeasonDefinition input) { if (input == null) { return(false); } return (( DisplayProperties == input.DisplayProperties || (DisplayProperties != null && DisplayProperties.Equals(input.DisplayProperties)) ) && ( BackgroundImagePath == input.BackgroundImagePath || (BackgroundImagePath != null && BackgroundImagePath.Equals(input.BackgroundImagePath)) ) && ( SeasonNumber == input.SeasonNumber || (SeasonNumber.Equals(input.SeasonNumber)) ) && ( StartDate == input.StartDate || (StartDate != null && StartDate.Equals(input.StartDate)) ) && ( EndDate == input.EndDate || (EndDate != null && EndDate.Equals(input.EndDate)) ) && ( SeasonPassHash == input.SeasonPassHash || (SeasonPassHash.Equals(input.SeasonPassHash)) ) && ( SeasonPassProgressionHash == input.SeasonPassProgressionHash || (SeasonPassProgressionHash.Equals(input.SeasonPassProgressionHash)) ) && ( ArtifactItemHash == input.ArtifactItemHash || (ArtifactItemHash.Equals(input.ArtifactItemHash)) ) && ( SealPresentationNodeHash == input.SealPresentationNodeHash || (SealPresentationNodeHash.Equals(input.SealPresentationNodeHash)) ) && ( SeasonalChallengesPresentationNodeHash == input.SeasonalChallengesPresentationNodeHash || (SeasonalChallengesPresentationNodeHash.Equals(input.SeasonalChallengesPresentationNodeHash)) ) && ( Preview == input.Preview || (Preview != null && Preview.Equals(input.Preview)) ) && ( Hash == input.Hash || (Hash.Equals(input.Hash)) ) && ( Index == input.Index || (Index.Equals(input.Index)) ) && ( Redacted == input.Redacted || (Redacted != null && Redacted.Equals(input.Redacted)) )); }