Exemple #1
0
 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));
     }
 }
Exemple #2
0
 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));
 }