Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 public override int GetHashCode()
 {
     return(Text.GetHashCode() +
            IsSelected.GetHashCode() +
            IsRequired.GetHashCode() +
            (Value != null ? Value.GetHashCode() : 0));
 }
Ejemplo n.º 3
0
        public override int GetHashCode()
        {
            int hashCode = 0;

            unchecked {
                if (ModifierType != null)
                {
                    hashCode += 1000000007 * ModifierType.GetHashCode();
                }
                hashCode += 1000000009 * IsRequired.GetHashCode();
            }
            return(hashCode);
        }
Ejemplo n.º 4
0
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         // Suitable nullity checks etc, of course :)
         if (IsRequired != null)
         {
             hashCode = hashCode * 59 + IsRequired.GetHashCode();
         }
         if (Validators != null)
         {
             hashCode = hashCode * 59 + Validators.GetHashCode();
         }
         return(hashCode);
     }
 }
Ejemplo n.º 5
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (Name != null ? Name.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ IsRequired.GetHashCode();
         hashCode = (hashCode * 397) ^ Size.GetHashCode();
         hashCode = (hashCode * 397) ^ ShowTime.GetHashCode();
         hashCode = (hashCode * 397) ^ IsHtml.GetHashCode();
         hashCode = (hashCode * 397) ^ IsIpAddress.GetHashCode();
         hashCode = (hashCode * 397) ^ (ImageSource != null ? ImageSource.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Separator != null ? Separator.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (References != null ? References.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ IsReference.GetHashCode();
         hashCode = (hashCode * 397) ^ (Alias != null ? Alias.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Format != null ? Format.GetHashCode() : 0);
         return(hashCode);
     }
 }