public void Update(DestinyEntitySearchResult?other) { if (other is null) { return; } if (!SuggestedWords.DeepEqualsListNaive(other.SuggestedWords)) { SuggestedWords = other.SuggestedWords; OnPropertyChanged(nameof(SuggestedWords)); } if (!Results.DeepEquals(other.Results)) { Results.Update(other.Results); OnPropertyChanged(nameof(Results)); } }
public bool DeepEquals(DestinyEntitySearchResult?other) { return(other is not null && SuggestedWords.DeepEqualsListNaive(other.SuggestedWords) && (Results is not null ? Results.DeepEquals(other.Results) : other.Results is null)); }