/// <inheritdoc/>
 public override int GetHashCode()
 => (Role ?? string.Empty).GetHashCode() ^
 (Name ?? string.Empty).GetHashCode() ^
 (Value ?? string.Empty).GetHashCode() ^
 (Description ?? string.Empty).GetHashCode() ^
 (Keyshortcuts ?? string.Empty).GetHashCode() ^
 (Roledescription ?? string.Empty).GetHashCode() ^
 (Valuetext ?? string.Empty).GetHashCode() ^
 Disabled.GetHashCode() ^
 Expanded.GetHashCode() ^
 Focused.GetHashCode() ^
 Modal.GetHashCode() ^
 Multiline.GetHashCode() ^
 Multiselectable.GetHashCode() ^
 Readonly.GetHashCode() ^
 Required.GetHashCode() ^
 Selected.GetHashCode() ^
 Checked.GetHashCode() ^
 Pressed.GetHashCode() ^
 Level.GetHashCode() ^
 Valuemin.GetHashCode() ^
 Valuemax.GetHashCode() ^
 (Autocomplete ?? string.Empty).GetHashCode() ^
 (Haspopup ?? string.Empty).GetHashCode() ^
 (Invalid ?? string.Empty).GetHashCode() ^
 (Orientation ?? string.Empty).GetHashCode() ^
 Children.GetHashCode();
Beispiel #2
0
        public override int GetHashCode()
        {
            int hashCode = 0;

            if (Type != null)
            {
                hashCode ^= Type.GetHashCode();
            }
            hashCode ^= Required.GetHashCode();
            //if (Pattern != null)
            //    hashCode ^= Pattern.GetHashCode();
            //if (Format != null)
            //    hashCode ^= Format.GetHashCode();
            if (MinLength != null)
            {
                hashCode ^= MinLength.GetHashCode();
            }
            if (MaxLength != null)
            {
                hashCode ^= MaxLength.GetHashCode();
            }
            //if (MinValue != null)
            //    hashCode ^= MinValue.GetHashCode();
            //if (MaxValue != null)
            //    hashCode ^= MaxValue.GetHashCode();
            //if (EnumType != null)
            //    hashCode ^= EnumType.GetHashCode();

            return(hashCode);
        }
Beispiel #3
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Id != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            hash ^= privilege_.GetHashCode();
            hash ^= assignableRole_.GetHashCode();
            if (Required != false)
            {
                hash ^= Required.GetHashCode();
            }
            if (Unique != false)
            {
                hash ^= Unique.GetHashCode();
            }
            if (RelegationRole != 0)
            {
                hash ^= RelegationRole.GetHashCode();
            }
            hash ^= attribute_.GetHashCode();
            hash ^= kickableRole_.GetHashCode();
            hash ^= removableRole_.GetHashCode();
            return(hash);
        }
Beispiel #4
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (Shorthand.Length != 0)
            {
                hash ^= Shorthand.GetHashCode();
            }
            if (DefaultValue.Length != 0)
            {
                hash ^= DefaultValue.GetHashCode();
            }
            if (Usage.Length != 0)
            {
                hash ^= Usage.GetHashCode();
            }
            if (Required != false)
            {
                hash ^= Required.GetHashCode();
            }
            if (IncludeNested != false)
            {
                hash ^= IncludeNested.GetHashCode();
            }
            return(hash);
        }
Beispiel #5
0
        public override int GetHashCode()
        {
            int hashCode = 0;

            if (Type != null)
            {
                hashCode ^= Type.GetHashCode();
            }
            hashCode ^= Required.GetHashCode();
            if (MinLength != null)
            {
                hashCode ^= MinLength.GetHashCode();
            }
            if (MaxLength != null)
            {
                hashCode ^= MaxLength.GetHashCode();
            }
            if (Title != null)
            {
                hashCode ^= Title.GetHashCode();
            }
            if (Description != null)
            {
                hashCode ^= Description.GetHashCode();
            }

            return(hashCode);
        }
Beispiel #6
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);
            }
        }
 /// <inheritdoc/>
 public override int GetHashCode()
 => Role.GetHashCode() ^
 Name.GetHashCode() ^
 Value.GetHashCode() ^
 Description.GetHashCode() ^
 KeyShortcuts.GetHashCode() ^
 RoleDescription.GetHashCode() ^
 ValueText.GetHashCode() ^
 AutoComplete.GetHashCode() ^
 HasPopup.GetHashCode() ^
 Orientation.GetHashCode() ^
 Disabled.GetHashCode() ^
 Expanded.GetHashCode() ^
 Focused.GetHashCode() ^
 Modal.GetHashCode() ^
 Multiline.GetHashCode() ^
 Multiselectable.GetHashCode() ^
 Readonly.GetHashCode() ^
 Required.GetHashCode() ^
 Selected.GetHashCode() ^
 Pressed.GetHashCode() ^
 Checked.GetHashCode() ^
 Level.GetHashCode() ^
 ValueMin.GetHashCode() ^
 ValueMax.GetHashCode() ^
 Children.GetHashCode();
Beispiel #8
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (HasName)
            {
                hash ^= Name.GetHashCode();
            }
            hash ^= assignableRole_.GetHashCode();
            if (HasRequired)
            {
                hash ^= Required.GetHashCode();
            }
            if (HasUnique)
            {
                hash ^= Unique.GetHashCode();
            }
            if (HasRelegationRole)
            {
                hash ^= RelegationRole.GetHashCode();
            }
            hash ^= kickableRole_.GetHashCode();
            hash ^= removableRole_.GetHashCode();
            hash ^= mentionableRole_.GetHashCode();
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Beispiel #9
0
 public override int GetHashCode()
 {
     return(unchecked (
                1009 * StringToMatch.GetHashCode()
                + 1033 * Required.GetHashCode()
                + 1151 * TrimInitialWhitespace.GetHashCode()
                ));
 }
Beispiel #10
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (Name != null ? Name.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Label != null ? Label.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Icon != null ? Icon.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ DisplayLabel.GetHashCode();
         hashCode = (hashCode * 397) ^ LabelStacked.GetHashCode();
         hashCode = (hashCode * 397) ^ DisplayIcon.GetHashCode();
         hashCode = (hashCode * 397) ^ IconStacked.GetHashCode();
         hashCode = (hashCode * 397) ^ Required.GetHashCode();
         hashCode = (hashCode * 397) ^ IsStart.GetHashCode();
         hashCode = (hashCode * 397) ^ (Value != null ? Value.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ NotVisible.GetHashCode();
         hashCode = (hashCode * 397) ^ NotEnabled.GetHashCode();
         hashCode = (hashCode * 397) ^ (ErrorMsg != null ? ErrorMsg.GetHashCode() : 0);
         return(hashCode);
     }
 }
Beispiel #11
0
        public override int GetHashCode()
        {
            unchecked
            {
                var hashCode = Name != null?Name.GetHashCode() : 0;

                hashCode = (hashCode * 397) ^ (int)Type;
                hashCode = (hashCode * 397) ^ (From != null ? From.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (int)Rel;
                hashCode = (hashCode * 397) ^ (int)Scope;
                hashCode = (hashCode * 397) ^ (Default != null ? Default.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ Nullable.GetHashCode();
                hashCode = (hashCode * 397) ^ Required.GetHashCode();
                hashCode = (hashCode * 397) ^ Disabled.GetHashCode();
                hashCode = (hashCode * 397) ^ Protected.GetHashCode();
                hashCode = (hashCode * 397) ^ Personal.GetHashCode();
                hashCode = (hashCode * 397) ^ (Annotations != null ? Annotations.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (Description != null ? Description.GetHashCode() : 0);
                return(hashCode);
            }
        }
 /// <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);
     }
 }