public override int GetHashCode()
        {
            unchecked
            {
                var hash = 17;

                hash = hash * 23 + Fields.GetHashCode();
                hash = hash * 23 + Properties.GetHashCode();
                hash = hash * 23 + Methods.GetHashCode();
                hash = hash * 23 + Constructors.GetHashCode();
                hash = hash * 23 + Gettable.GetHashCode();
                hash = hash * 23 + Settable.GetHashCode();
                hash = hash * 23 + Indexers.GetHashCode();
                hash = hash * 23 + Events.GetHashCode();

                hash = hash * 23 + Inherited.GetHashCode();
                hash = hash * 23 + Targeted.GetHashCode();
                hash = hash * 23 + NonTargeted.GetHashCode();
                hash = hash * 23 + Public.GetHashCode();
                hash = hash * 23 + NonPublic.GetHashCode();
                hash = hash * 23 + ReadOnly.GetHashCode();
                hash = hash * 23 + WriteOnly.GetHashCode();
                hash = hash * 23 + Extensions.GetHashCode();
                hash = hash * 23 + Operators.GetHashCode();
                hash = hash * 23 + Conversions.GetHashCode();
                hash = hash * 23 + Parameters.GetHashCode();
                hash = hash * 23 + Obsolete.GetHashCode();
                hash = hash * 23 + OpenConstructedGeneric.GetHashCode();
                hash = hash * 23 + TypeInitializers.GetHashCode();

                return(hash);
            }
        }
Пример #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);
            }
        }
Пример #3
0
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         int hashCode = 41;
         if (Minimum != null)
         {
             hashCode = hashCode * 59 + Minimum.GetHashCode();
         }
         if (Maximum != null)
         {
             hashCode = hashCode * 59 + Maximum.GetHashCode();
         }
         if (Step != null)
         {
             hashCode = hashCode * 59 + Step.GetHashCode();
         }
         if (Pattern != null)
         {
             hashCode = hashCode * 59 + Pattern.GetHashCode();
         }
         if (ReadOnly != null)
         {
             hashCode = hashCode * 59 + ReadOnly.GetHashCode();
         }
         if (Options != null)
         {
             hashCode = hashCode * 59 + Options.GetHashCode();
         }
         return(hashCode);
     }
 }
Пример #4
0
 /// <summary>
 /// Returns a hash code for this instance.
 /// </summary>
 /// <returns>
 /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
 /// </returns>
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = 17 + AllowNull.GetHashCode() ^ ReadOnly.GetHashCode() + 31 * GetHashCode(PossibleValues);;
         return((DefaultValue == null) ? hashCode : hashCode *32 ^ DefaultValue.GetHashCode());
     }
 }
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = base.GetHashCode();
         hashCode = (hashCode * 397) ^ IndexType.GetHashCode();
         hashCode = (hashCode * 397) ^ ValueType.GetHashCode();
         hashCode = (hashCode * 397) ^ ReadOnly.GetHashCode();
         return(hashCode);
     }
 }
Пример #6
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (Name != null ? Name.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Label != null ? Label.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Type != null ? Type.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ ReadOnly.GetHashCode();
         hashCode = (hashCode * 397) ^ (Description != null ? Description.GetHashCode() : 0);
         return(hashCode);
     }
 }
Пример #7
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Minimum;
         hashCode = (hashCode * 397) ^ Maximum;
         hashCode = (hashCode * 397) ^ ReadOnly.GetHashCode();
         hashCode = (hashCode * 397) ^ (Options != null ? Options.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Step.GetHashCode();
         hashCode = (hashCode * 397) ^ (Pattern != null ? Pattern.GetHashCode() : 0);
         return(hashCode);
     }
 }
Пример #8
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (modeCase_ == ModeOneofCase.ReadOnly)
            {
                hash ^= ReadOnly.GetHashCode();
            }
            if (modeCase_ == ModeOneofCase.ReadWrite)
            {
                hash ^= ReadWrite.GetHashCode();
            }
            hash ^= (int)modeCase_;
            return(hash);
        }
Пример #9
0
        /// <summary>
        ///     Returns a hash code for this instance.
        /// </summary>
        /// <returns>
        ///     A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
        /// </returns>
        public override int GetHashCode( )
        {
            unchecked
            {
                int hashCode = 17;

                hashCode = hashCode * 92821 + Id.GetHashCode( );
                hashCode = hashCode * 92821 + ReadOnly.GetHashCode( );
                hashCode = hashCode * 92821 + TenantId.GetHashCode( );

                if (TypeIds != null)
                {
                    hashCode = hashCode * 92821 + TypeIds.GetHashCode( );
                }

                return(hashCode);
            }
        }
Пример #10
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (modeCase_ == ModeOneofCase.ReadOnly)
            {
                hash ^= ReadOnly.GetHashCode();
            }
            if (modeCase_ == ModeOneofCase.ReadWrite)
            {
                hash ^= ReadWrite.GetHashCode();
            }
            hash ^= (int)modeCase_;
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Пример #11
0
 public override int GetHashCode()
 {
     unchecked {
         int hash = 17;
         hash = hash * 486187739 + ReturnType.GetHashCode();
         if (Parameters != null)
         {
             foreach (var prm in Parameters)
             {
                 hash = hash * 486187739 + prm.GetHashCode();
             }
         }
         if (ReadOnly.HasValue)
         {
             hash = hash * 486187739 + ReadOnly.GetHashCode();
         }
         return(hash);
     }
 }
 /// <summary>
 /// Serves as a hash function for a particular type.
 /// </summary>
 /// <returns>A hash code for the current object.</returns>
 public override int GetHashCode()
 {
     unchecked
     {
         int result = 17;
         result = result * 23 + base.GetHashCode();
         result = result * 23 + ((Name != null) ? Name.GetHashCode() : 0);
         result = result * 23 + Type.GetHashCode();
         result = result * 23 + Editable.GetHashCode();
         result = result * 23 + Mandatory.GetHashCode();
         result = result * 23 + Hidden.GetHashCode();
         result = result * 23 + Hideable.GetHashCode();
         result = result * 23 + Width.GetHashCode();
         result = result * 23 + ((Text != null) ? Text.GetHashCode() : 0);
         result = result * 23 + Xtype.GetHashCode();
         result = result * 23 + Align.GetHashCode();
         result = result * 23 + ((Tooltip != null) ? Tooltip.GetHashCode() : 0);
         result = result * 23 + Sortable.GetHashCode();
         result = result * 23 + SortDirection.GetHashCode();
         result = result * 23 + ((Format != null) ? Format.GetHashCode() : 0);
         result = result * 23 + DecimalPlaces.GetHashCode();
         result = result * 23 + ((DataUrl != null) ? DataUrl.GetHashCode() : 0);
         result = result * 23 + ((DefaultValue != null) ? DefaultValue.GetHashCode() : 0);
         result = result * 23 + ((Description != null) ? Description.GetHashCode() : 0);
         result = result * 23 + Rank.GetHashCode();
         result = result * 23 + ReadOnly.GetHashCode();
         result = result * 23 + MaxLength.GetHashCode();
         result = result * 23 + ((Validator != null) ? Validator.GetHashCode() : 0);
         result = result * 23 + ((SearchFieldDefinition != null) ? SearchFieldDefinition.GetHashCode() : 0);
         result = result * 23 + SingleComboFilter.GetHashCode();
         result = result * 23 + AllowComboCustomValue.GetHashCode();
         result = result * 23 + SearchComboFromLeft.GetHashCode();
         result = result * 23 + LoadWhenVisible.GetHashCode();
         result = result * 23 + Nullable.GetHashCode();
         result = result * 23 + ((Tpl != null) ? Tpl.GetHashCode() : 0);
         result = result * 23 + MinCharSearch.GetHashCode();
         result = result * 23 + ((AdditionalWhereSqlTemp != null) ? AdditionalWhereSqlTemp.GetHashCode() : 0);
         return(result);
     }
 }
 /// <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);
     }
 }
Пример #14
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ResourceName.Length != 0)
            {
                hash ^= ResourceName.GetHashCode();
            }
            if (id_ != null)
            {
                hash ^= Id.GetHashCode();
            }
            if (readOnly_ != null)
            {
                hash ^= ReadOnly.GetHashCode();
            }
            if (name_ != null)
            {
                hash ^= Name.GetHashCode();
            }
            if (description_ != null)
            {
                hash ^= Description.GetHashCode();
            }
            if (MembershipStatus != 0)
            {
                hash ^= MembershipStatus.GetHashCode();
            }
            if (integrationCode_ != null)
            {
                hash ^= IntegrationCode.GetHashCode();
            }
            if (membershipLifeSpan_ != null)
            {
                hash ^= MembershipLifeSpan.GetHashCode();
            }
            if (sizeForDisplay_ != null)
            {
                hash ^= SizeForDisplay.GetHashCode();
            }
            if (SizeRangeForDisplay != 0)
            {
                hash ^= SizeRangeForDisplay.GetHashCode();
            }
            if (sizeForSearch_ != null)
            {
                hash ^= SizeForSearch.GetHashCode();
            }
            if (SizeRangeForSearch != 0)
            {
                hash ^= SizeRangeForSearch.GetHashCode();
            }
            if (Type != 0)
            {
                hash ^= Type.GetHashCode();
            }
            if (ClosingReason != 0)
            {
                hash ^= ClosingReason.GetHashCode();
            }
            if (AccessReason != 0)
            {
                hash ^= AccessReason.GetHashCode();
            }
            if (AccountUserListStatus != 0)
            {
                hash ^= AccountUserListStatus.GetHashCode();
            }
            if (eligibleForSearch_ != null)
            {
                hash ^= EligibleForSearch.GetHashCode();
            }
            if (eligibleForDisplay_ != null)
            {
                hash ^= EligibleForDisplay.GetHashCode();
            }
            if (userListCase_ == UserListOneofCase.CrmBasedUserList)
            {
                hash ^= CrmBasedUserList.GetHashCode();
            }
            if (userListCase_ == UserListOneofCase.SimilarUserList)
            {
                hash ^= SimilarUserList.GetHashCode();
            }
            hash ^= (int)userListCase_;
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }