コード例 #1
0
 public bool DeepEquals(DestinyVendorInventoryFlyoutDefinition?other)
 {
     return(other is not null &&
            LockedDescription == other.LockedDescription &&
            (DisplayProperties is not null ? DisplayProperties.DeepEquals(other.DisplayProperties) : other.DisplayProperties is null) &&
            Buckets.DeepEqualsList(other.Buckets) &&
            FlyoutId == other.FlyoutId &&
            SuppressNewness == other.SuppressNewness &&
            EquipmentSlotHash == other.EquipmentSlotHash);
 }
コード例 #2
0
 public void Update(DestinyVendorInventoryFlyoutDefinition?other)
 {
     if (other is null)
     {
         return;
     }
     if (LockedDescription != other.LockedDescription)
     {
         LockedDescription = other.LockedDescription;
         OnPropertyChanged(nameof(LockedDescription));
     }
     if (!DisplayProperties.DeepEquals(other.DisplayProperties))
     {
         DisplayProperties.Update(other.DisplayProperties);
         OnPropertyChanged(nameof(DisplayProperties));
     }
     if (!Buckets.DeepEqualsList(other.Buckets))
     {
         Buckets = other.Buckets;
         OnPropertyChanged(nameof(Buckets));
     }
     if (FlyoutId != other.FlyoutId)
     {
         FlyoutId = other.FlyoutId;
         OnPropertyChanged(nameof(FlyoutId));
     }
     if (SuppressNewness != other.SuppressNewness)
     {
         SuppressNewness = other.SuppressNewness;
         OnPropertyChanged(nameof(SuppressNewness));
     }
     if (EquipmentSlotHash != other.EquipmentSlotHash)
     {
         EquipmentSlotHash = other.EquipmentSlotHash;
         OnPropertyChanged(nameof(EquipmentSlotHash));
     }
 }