public void Update(DestinyLocationDefinition?other) { if (other is null) { return; } if (VendorHash != other.VendorHash) { VendorHash = other.VendorHash; OnPropertyChanged(nameof(VendorHash)); } if (!LocationReleases.DeepEqualsList(other.LocationReleases)) { LocationReleases = other.LocationReleases; OnPropertyChanged(nameof(LocationReleases)); } if (Hash != other.Hash) { Hash = other.Hash; OnPropertyChanged(nameof(Hash)); } if (Index != other.Index) { Index = other.Index; OnPropertyChanged(nameof(Index)); } if (Redacted != other.Redacted) { Redacted = other.Redacted; OnPropertyChanged(nameof(Redacted)); } }
public bool DeepEquals(DestinyLocationDefinition?other) { return(other is not null && VendorHash == other.VendorHash && LocationReleases.DeepEqualsList(other.LocationReleases) && Hash == other.Hash && Index == other.Index && Redacted == other.Redacted); }