Example #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         const int hashingBase       = (int)2166136261;
         const int hashingMultiplier = 16777619;
         int       hashCode          = hashingBase;
         hashCode = (hashCode * hashingMultiplier) + TraitId.GetHashCode();
         hashCode = (hashCode * hashingMultiplier) + Name.GetHashCode();
         hashCode = (hashCode * hashingMultiplier) + Description.GetHashCode();
         hashCode = (hashCode * hashingMultiplier) + Meta.GetHashCode();
         hashCode = (hashCode * hashingMultiplier) + Chars.GetHashCode();
         hashCode = (hashCode * hashingMultiplier) + Aliases.GetHashCode();
         hashCode = (hashCode * hashingMultiplier) + Parents.GetHashCode();
         return(hashCode);
     }
 }
        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))
                 ));
        }