public void Update(DestinyItemSocketBlockDefinition?other) { if (other is null) { return; } if (Detail != other.Detail) { Detail = other.Detail; OnPropertyChanged(nameof(Detail)); } if (!SocketEntries.DeepEqualsList(other.SocketEntries)) { SocketEntries = other.SocketEntries; OnPropertyChanged(nameof(SocketEntries)); } if (!IntrinsicSockets.DeepEqualsList(other.IntrinsicSockets)) { IntrinsicSockets = other.IntrinsicSockets; OnPropertyChanged(nameof(IntrinsicSockets)); } if (!SocketCategories.DeepEqualsList(other.SocketCategories)) { SocketCategories = other.SocketCategories; OnPropertyChanged(nameof(SocketCategories)); } }
public bool DeepEquals(DestinyItemSocketBlockDefinition?other) { return(other is not null && Detail == other.Detail && SocketEntries.DeepEqualsList(other.SocketEntries) && IntrinsicSockets.DeepEqualsList(other.IntrinsicSockets) && SocketCategories.DeepEqualsList(other.SocketCategories)); }