Ejemplo n.º 1
0
        /// <summary>
        /// Generates a nearly unique hashcode for this structure.
        /// </summary>
        /// <returns>A hash code.</returns>
        public override int GetHashCode()
        {
            int hash = m_direction.GetHashCode();

            hash = hash * 31 + m_propertyKey.GetHashCode();
            return(hash);
        }
Ejemplo n.º 2
0
        public override int GetHashCode()
        {
            var hashCode = LayoutMode.GetHashCode();

            hashCode = (hashCode * 397) ^ GridViewSize.GetHashCode();
            hashCode = (hashCode * 397) ^ DirectorySortOption.GetHashCode();
            hashCode = (hashCode * 397) ^ DirectorySortDirection.GetHashCode();
            hashCode = (hashCode * 397) ^ SortDirectoriesAlongsideFiles.GetHashCode();
            hashCode = (hashCode * 397) ^ IsAdaptiveLayoutOverridden.GetHashCode();
            hashCode = (hashCode * 397) ^ ColumnsViewModel.GetHashCode();
            return(hashCode);
        }
 public override int GetHashCode()
 {
   unchecked
   {
     int result = Index;
     result = (result * 397) ^ DisplayIndex;
     result = (result * 397) ^ Width.GetHashCode();
     result = (result * 397) ^ Visibility.GetHashCode();
     result = (result * 397) ^ (Header != null ? Header.GetHashCode() : 0);
     result = (result * 397) ^ (SortDirection != null ? SortDirection.GetHashCode() : -1);
     return result;
   }
 }
Ejemplo n.º 4
0
 public override int GetHashCode()
 {
     unchecked
     {
         int result = Name.GetHashCode();
         result = (result * 397) ^ (Caption != null ? Caption.GetHashCode() : 0);
         result = (result * 397) ^ (Format != null ? Format.GetHashCode() : 0);
         result = (result * 397) ^ Hidden.GetHashCode();
         result = (result * 397) ^ (SortIndex != null ? SortIndex.GetHashCode() : 0);
         result = (result * 397) ^ (SortDirection != null ? SortDirection.GetHashCode() : 0);
         result = (result * 397) ^ Total.GetHashCode();
         return(result);
     }
 }
 /// <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);
     }
 }
Ejemplo n.º 6
0
 public override int GetHashCode()
 {
     return(Name.ToLower().GetHashCode() + Position.GetHashCode() + SortDirection.GetHashCode());
 }