public override int GetHashCode()
        {
            var hashCode = -1067145431;

            hashCode = hashCode * -1521134295 + base.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(CustomizedType);

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(FieldFormat);

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Regexp);

            hashCode = hashCode * -1521134295 + EqualityComparer <int?> .Default.GetHashCode(MinLength);

            hashCode = hashCode * -1521134295 + EqualityComparer <int?> .Default.GetHashCode(MaxLength);

            hashCode = hashCode * -1521134295 + IsRequired.GetHashCode();
            hashCode = hashCode * -1521134295 + IsFilter.GetHashCode();
            hashCode = hashCode * -1521134295 + Searchable.GetHashCode();
            hashCode = hashCode * -1521134295 + Multiple.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(DefaultValue);

            hashCode = hashCode * -1521134295 + Visible.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <IList <CustomFieldPossibleValue> > .Default.GetHashCode(PossibleValues);

            hashCode = hashCode * -1521134295 + EqualityComparer <IList <TrackerCustomField> > .Default.GetHashCode(Trackers);

            hashCode = hashCode * -1521134295 + EqualityComparer <IList <CustomFieldRole> > .Default.GetHashCode(Roles);

            return(hashCode);
        }
Esempio n. 2
0
        public override int GetHashCode()
        {
            unchecked
            {
                var hashCode = Context != null?Context.GetHashCode() : 0;

                hashCode = (hashCode * 397) ^ (DefaultValue != null ? DefaultValue.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (Description != null ? Description.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (Label != null ? Label.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (Name != null ? Name.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ Required.GetHashCode();
                hashCode = (hashCode * 397) ^ (Type != null ? Type.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ Min;
                hashCode = (hashCode * 397) ^ Max;
                hashCode = (hashCode * 397) ^ Stepsize;
                hashCode = (hashCode * 397) ^ (Pattern != null ? Pattern.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ ReadOnly.GetHashCode();
                hashCode = (hashCode * 397) ^ Multiple.GetHashCode();
                hashCode = (hashCode * 397) ^ MultipleLimit;
                hashCode = (hashCode * 397) ^ (GroupName != null ? GroupName.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ Advanced.GetHashCode();
                hashCode = (hashCode * 397) ^ Verify.GetHashCode();
                hashCode = (hashCode * 397) ^ LimitToOptions.GetHashCode();
                hashCode = (hashCode * 397) ^ (Unit != null ? Unit.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (UnitLabel != null ? UnitLabel.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (Options != null ? Options.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (FilterCriteria != null ? FilterCriteria.GetHashCode() : 0);
                return(hashCode);
            }
        }
Esempio n. 3
0
        public override int GetHashCode()
        {
            unchecked {
                int hash = 17;
                hash = hash * 23 + Amount.GetHashCode();
                hash = hash * 23 + Currency.GetHashCode();
                hash = hash * 23 + Used.GetHashCode();
                hash = hash * 23 + Multiple.GetHashCode();
                hash = hash * 23 + Title.GetHashCode();
                hash = hash * 23 + Description.GetHashCode();
                hash = hash * 23 + Charges.GetHashCode();
                hash = hash * 23 + PaymentURI.GetHashCode();

                return(hash);
            }
        }
Esempio n. 4
0
        public override int GetHashCode()
        {
            unchecked {
                int hash = 17;
                if (Amount != default(long))
                {
                    hash = hash * 23 + Amount.GetHashCode();
                }
                if (Currency != default(string))
                {
                    hash = hash * 23 + Currency.GetHashCode();
                }
                if (Used != default(bool))
                {
                    hash = hash * 23 + Used.GetHashCode();
                }
                if (Multiple != default(bool))
                {
                    hash = hash * 23 + Multiple.GetHashCode();
                }
                if (Title != default(string))
                {
                    hash = hash * 23 + Title.GetHashCode();
                }
                if (Description != default(string))
                {
                    hash = hash * 23 + Description.GetHashCode();
                }
                if (Charges != default(ScopedList <Charge>))
                {
                    hash = hash * 23 + Charges.GetHashCode();
                }
                if (PaymentURI != default(string))
                {
                    hash = hash * 23 + PaymentURI.GetHashCode();
                }

                return(hash);
            }
        }
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         int hashCode = 41;
         if (Context != null)
         {
             hashCode = hashCode * 59 + Context.GetHashCode();
         }
         if (DefaultValue != null)
         {
             hashCode = hashCode * 59 + DefaultValue.GetHashCode();
         }
         if (Description != null)
         {
             hashCode = hashCode * 59 + Description.GetHashCode();
         }
         if (Label != null)
         {
             hashCode = hashCode * 59 + Label.GetHashCode();
         }
         if (Name != null)
         {
             hashCode = hashCode * 59 + Name.GetHashCode();
         }
         if (Required != null)
         {
             hashCode = hashCode * 59 + Required.GetHashCode();
         }
         if (Type != null)
         {
             hashCode = hashCode * 59 + Type.GetHashCode();
         }
         if (Min != null)
         {
             hashCode = hashCode * 59 + Min.GetHashCode();
         }
         if (Max != null)
         {
             hashCode = hashCode * 59 + Max.GetHashCode();
         }
         if (Stepsize != null)
         {
             hashCode = hashCode * 59 + Stepsize.GetHashCode();
         }
         if (Pattern != null)
         {
             hashCode = hashCode * 59 + Pattern.GetHashCode();
         }
         if (ReadOnly != null)
         {
             hashCode = hashCode * 59 + ReadOnly.GetHashCode();
         }
         if (Multiple != null)
         {
             hashCode = hashCode * 59 + Multiple.GetHashCode();
         }
         if (MultipleLimit != null)
         {
             hashCode = hashCode * 59 + MultipleLimit.GetHashCode();
         }
         if (GroupName != null)
         {
             hashCode = hashCode * 59 + GroupName.GetHashCode();
         }
         if (Advanced != null)
         {
             hashCode = hashCode * 59 + Advanced.GetHashCode();
         }
         if (Verify != null)
         {
             hashCode = hashCode * 59 + Verify.GetHashCode();
         }
         if (LimitToOptions != null)
         {
             hashCode = hashCode * 59 + LimitToOptions.GetHashCode();
         }
         if (Unit != null)
         {
             hashCode = hashCode * 59 + Unit.GetHashCode();
         }
         if (UnitLabel != null)
         {
             hashCode = hashCode * 59 + UnitLabel.GetHashCode();
         }
         if (Options != null)
         {
             hashCode = hashCode * 59 + Options.GetHashCode();
         }
         if (FilterCriteria != null)
         {
             hashCode = hashCode * 59 + FilterCriteria.GetHashCode();
         }
         return(hashCode);
     }
 }