コード例 #1
0
 public void Update(DestinyProgressionLevelRequirementDefinition?other)
 {
     if (other is null)
     {
         return;
     }
     if (!RequirementCurve.DeepEqualsList(other.RequirementCurve))
     {
         RequirementCurve = other.RequirementCurve;
         OnPropertyChanged(nameof(RequirementCurve));
     }
     if (ProgressionHash != other.ProgressionHash)
     {
         ProgressionHash = other.ProgressionHash;
         OnPropertyChanged(nameof(ProgressionHash));
     }
     if (Hash != other.Hash)
     {
         Hash = other.Hash;
         OnPropertyChanged(nameof(Hash));
     }
     if (Index != other.Index)
     {
         Index = other.Index;
         OnPropertyChanged(nameof(Index));
     }
     if (Redacted != other.Redacted)
     {
         Redacted = other.Redacted;
         OnPropertyChanged(nameof(Redacted));
     }
 }
        public bool Equals(DestinyProgressionLevelRequirementDefinition input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     RequirementCurve == input.RequirementCurve ||
                     (RequirementCurve != null && RequirementCurve.SequenceEqual(input.RequirementCurve))
                     ) &&
                 (
                     ProgressionHash == input.ProgressionHash ||
                     (ProgressionHash.Equals(input.ProgressionHash))
                 ) &&
                 (
                     Hash == input.Hash ||
                     (Hash.Equals(input.Hash))
                 ) &&
                 (
                     Index == input.Index ||
                     (Index.Equals(input.Index))
                 ) &&
                 (
                     Redacted == input.Redacted ||
                     (Redacted != null && Redacted.Equals(input.Redacted))
                 ));
        }
コード例 #3
0
 public bool DeepEquals(DestinyProgressionLevelRequirementDefinition?other)
 {
     return(other is not null &&
            RequirementCurve.DeepEqualsList(other.RequirementCurve) &&
            ProgressionHash == other.ProgressionHash &&
            Hash == other.Hash &&
            Index == other.Index &&
            Redacted == other.Redacted);
 }
 public bool DeepEquals(DestinyProgressionLevelRequirementDefinition other)
 {
     return(other != null &&
            Progression.DeepEquals(other.Progression) &&
            RequirementCurve.DeepEqualsReadOnlyCollections(other.RequirementCurve) &&
            Blacklisted == other.Blacklisted &&
            Hash == other.Hash &&
            Index == other.Index &&
            Redacted == other.Redacted);
 }