コード例 #1
0
 public void Update(DestinyPresentationNodeChildrenBlock?other)
 {
     if (other is null)
     {
         return;
     }
     if (!PresentationNodes.DeepEqualsList(other.PresentationNodes))
     {
         PresentationNodes = other.PresentationNodes;
         OnPropertyChanged(nameof(PresentationNodes));
     }
     if (!Collectibles.DeepEqualsList(other.Collectibles))
     {
         Collectibles = other.Collectibles;
         OnPropertyChanged(nameof(Collectibles));
     }
     if (!Records.DeepEqualsList(other.Records))
     {
         Records = other.Records;
         OnPropertyChanged(nameof(Records));
     }
     if (!Metrics.DeepEqualsList(other.Metrics))
     {
         Metrics = other.Metrics;
         OnPropertyChanged(nameof(Metrics));
     }
 }
コード例 #2
0
 public bool DeepEquals(DestinyPresentationNodeChildrenBlock?other)
 {
     return(other is not null &&
            PresentationNodes.DeepEqualsList(other.PresentationNodes) &&
            Collectibles.DeepEqualsList(other.Collectibles) &&
            Records.DeepEqualsList(other.Records) &&
            Metrics.DeepEqualsList(other.Metrics));
 }