示例#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));
     }
 }
        public bool Equals(DestinyItemSocketBlockDefinition input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     Detail == input.Detail ||
                     (Detail != null && Detail.Equals(input.Detail))
                     ) &&
                 (
                     SocketEntries == input.SocketEntries ||
                     (SocketEntries != null && SocketEntries.SequenceEqual(input.SocketEntries))
                 ) &&
                 (
                     IntrinsicSockets == input.IntrinsicSockets ||
                     (IntrinsicSockets != null && IntrinsicSockets.SequenceEqual(input.IntrinsicSockets))
                 ) &&
                 (
                     SocketCategories == input.SocketCategories ||
                     (SocketCategories != null && SocketCategories.SequenceEqual(input.SocketCategories))
                 ));
        }
示例#3
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));
 }
 public bool DeepEquals(InventoryItemSocketsBlock other)
 {
     return(other != null &&
            Detail == other.Detail &&
            IntrinsicSockets.DeepEqualsReadOnlyCollections(other.IntrinsicSockets) &&
            SocketCategories.DeepEqualsReadOnlyCollections(other.SocketCategories) &&
            SocketEntries.DeepEqualsReadOnlyCollections(other.SocketEntries));
 }