Ejemplo n.º 1
0
 public bool DeepEquals(DestinyPresentationChildBlock?other)
 {
     return(other is not null &&
            PresentationNodeType == other.PresentationNodeType &&
            ParentPresentationNodeHashes.DeepEqualsListNaive(other.ParentPresentationNodeHashes) &&
            DisplayStyle == other.DisplayStyle);
 }
        public bool Equals(DestinyPresentationChildBlock input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     PresentationNodeType == input.PresentationNodeType ||
                     (PresentationNodeType != null && PresentationNodeType.Equals(input.PresentationNodeType))
                     ) &&
                 (
                     ParentPresentationNodeHashes == input.ParentPresentationNodeHashes ||
                     (ParentPresentationNodeHashes != null && ParentPresentationNodeHashes.SequenceEqual(input.ParentPresentationNodeHashes))
                 ) &&
                 (
                     DisplayStyle == input.DisplayStyle ||
                     (DisplayStyle != null && DisplayStyle.Equals(input.DisplayStyle))
                 ));
        }
Ejemplo n.º 3
0
 public void Update(DestinyPresentationChildBlock?other)
 {
     if (other is null)
     {
         return;
     }
     if (PresentationNodeType != other.PresentationNodeType)
     {
         PresentationNodeType = other.PresentationNodeType;
         OnPropertyChanged(nameof(PresentationNodeType));
     }
     if (!ParentPresentationNodeHashes.DeepEqualsListNaive(other.ParentPresentationNodeHashes))
     {
         ParentPresentationNodeHashes = other.ParentPresentationNodeHashes;
         OnPropertyChanged(nameof(ParentPresentationNodeHashes));
     }
     if (DisplayStyle != other.DisplayStyle)
     {
         DisplayStyle = other.DisplayStyle;
         OnPropertyChanged(nameof(DisplayStyle));
     }
 }