public bool Equals(DestinyItemCategoryDefinition input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     DisplayProperties == input.DisplayProperties ||
                     (DisplayProperties != null && DisplayProperties.Equals(input.DisplayProperties))
                     ) &&
                 (
                     Visible == input.Visible ||
                     (Visible != null && Visible.Equals(input.Visible))
                 ) &&
                 (
                     Deprecated == input.Deprecated ||
                     (Deprecated != null && Deprecated.Equals(input.Deprecated))
                 ) &&
                 (
                     ShortTitle == input.ShortTitle ||
                     (ShortTitle != null && ShortTitle.Equals(input.ShortTitle))
                 ) &&
                 (
                     ItemTypeRegex == input.ItemTypeRegex ||
                     (ItemTypeRegex != null && ItemTypeRegex.Equals(input.ItemTypeRegex))
                 ) &&
                 (
                     GrantDestinyBreakerType == input.GrantDestinyBreakerType ||
                     (GrantDestinyBreakerType != null && GrantDestinyBreakerType.Equals(input.GrantDestinyBreakerType))
                 ) &&
                 (
                     PlugCategoryIdentifier == input.PlugCategoryIdentifier ||
                     (PlugCategoryIdentifier != null && PlugCategoryIdentifier.Equals(input.PlugCategoryIdentifier))
                 ) &&
                 (
                     ItemTypeRegexNot == input.ItemTypeRegexNot ||
                     (ItemTypeRegexNot != null && ItemTypeRegexNot.Equals(input.ItemTypeRegexNot))
                 ) &&
                 (
                     OriginBucketIdentifier == input.OriginBucketIdentifier ||
                     (OriginBucketIdentifier != null && OriginBucketIdentifier.Equals(input.OriginBucketIdentifier))
                 ) &&
                 (
                     GrantDestinyItemType == input.GrantDestinyItemType ||
                     (GrantDestinyItemType != null && GrantDestinyItemType.Equals(input.GrantDestinyItemType))
                 ) &&
                 (
                     GrantDestinySubType == input.GrantDestinySubType ||
                     (GrantDestinySubType != null && GrantDestinySubType.Equals(input.GrantDestinySubType))
                 ) &&
                 (
                     GrantDestinyClass == input.GrantDestinyClass ||
                     (GrantDestinyClass != null && GrantDestinyClass.Equals(input.GrantDestinyClass))
                 ) &&
                 (
                     TraitId == input.TraitId ||
                     (TraitId != null && TraitId.Equals(input.TraitId))
                 ) &&
                 (
                     GroupedCategoryHashes == input.GroupedCategoryHashes ||
                     (GroupedCategoryHashes != null && GroupedCategoryHashes.SequenceEqual(input.GroupedCategoryHashes))
                 ) &&
                 (
                     ParentCategoryHashes == input.ParentCategoryHashes ||
                     (ParentCategoryHashes != null && ParentCategoryHashes.SequenceEqual(input.ParentCategoryHashes))
                 ) &&
                 (
                     GroupCategoryOnly == input.GroupCategoryOnly ||
                     (GroupCategoryOnly != null && GroupCategoryOnly.Equals(input.GroupCategoryOnly))
                 ) &&
                 (
                     Hash == input.Hash ||
                     (Hash.Equals(input.Hash))
                 ) &&
                 (
                     Index == input.Index ||
                     (Index.Equals(input.Index))
                 ) &&
                 (
                     Redacted == input.Redacted ||
                     (Redacted != null && Redacted.Equals(input.Redacted))
                 ));
        }
示例#2
0
 public virtual Boolean IsEqual(TitleDescriptionObjectTranslation item)
 {
     return(Title.Equals(item.Title) && Description.Equals(item.Description) && ShortTitle.Equals(item.ShortTitle));
 }