/// <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();
 /// <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();
Example #3
0
 public override int GetHashCode( )
 {
     unchecked
     {
         int hashCode = Checked.GetHashCode( );
         hashCode = (hashCode * 397) ^ Unchecked.GetHashCode( );
         hashCode = (hashCode * 397) ^ Indeterminate.GetHashCode( );
         return(hashCode);
     }
 }
 /// <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 (AssetNumber != null)
         {
             hashCode = hashCode * 59 + AssetNumber.GetHashCode();
         }
         if (SubNumber != null)
         {
             hashCode = hashCode * 59 + SubNumber.GetHashCode();
         }
         if (CompanyCode != null)
         {
             hashCode = hashCode * 59 + CompanyCode.GetHashCode();
         }
         if (Status != null)
         {
             hashCode = hashCode * 59 + Status.GetHashCode();
         }
         if (Checked != null)
         {
             hashCode = hashCode * 59 + Checked.GetHashCode();
         }
         if (CommentCostCenter != null)
         {
             hashCode = hashCode * 59 + CommentCostCenter.GetHashCode();
         }
         if (CommentLocation != null)
         {
             hashCode = hashCode * 59 + CommentLocation.GetHashCode();
         }
         if (CommentOther != null)
         {
             hashCode = hashCode * 59 + CommentOther.GetHashCode();
         }
         if (CommentPlant != null)
         {
             hashCode = hashCode * 59 + CommentPlant.GetHashCode();
         }
         return(hashCode);
     }
 }
Example #5
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (EventSn != 0L)
            {
                hash ^= EventSn.GetHashCode();
            }
            if (EventType != 0)
            {
                hash ^= EventType.GetHashCode();
            }
            if (EventValue.Length != 0)
            {
                hash ^= EventValue.GetHashCode();
            }
            if (StartDt.Length != 0)
            {
                hash ^= StartDt.GetHashCode();
            }
            if (EndDt.Length != 0)
            {
                hash ^= EndDt.GetHashCode();
            }
            if (Checked != false)
            {
                hash ^= Checked.GetHashCode();
            }
            if (IAmString.Length != 0)
            {
                hash ^= IAmString.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }