/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { int hashCode = 41; if (Type != null) { hashCode = hashCode * 59 + Type.GetHashCode(); } if (Name != null) { hashCode = hashCode * 59 + Name.GetHashCode(); } if (Label != null) { hashCode = hashCode * 59 + Label.GetHashCode(); } if (Category != null) { hashCode = hashCode * 59 + Category.GetHashCode(); } if (Tags != null) { hashCode = hashCode * 59 + Tags.GetHashCode(); } if (GroupNames != null) { hashCode = hashCode * 59 + GroupNames.GetHashCode(); } if (Link != null) { hashCode = hashCode * 59 + Link.GetHashCode(); } if (State != null) { hashCode = hashCode * 59 + State.GetHashCode(); } if (TransformedState != null) { hashCode = hashCode * 59 + TransformedState.GetHashCode(); } if (StateDescription != null) { hashCode = hashCode * 59 + StateDescription.GetHashCode(); } if (CommandDescription != null) { hashCode = hashCode * 59 + CommandDescription.GetHashCode(); } if (Metadata != null) { hashCode = hashCode * 59 + Metadata.GetHashCode(); } if (Editable != null) { hashCode = hashCode * 59 + Editable.GetHashCode(); } 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 (Parameters != null) { hashCode = hashCode * 59 + Parameters.GetHashCode(); } if (ParameterGroups != null) { hashCode = hashCode * 59 + ParameterGroups.GetHashCode(); } if (Description != null) { hashCode = hashCode * 59 + Description.GetHashCode(); } if (Label != null) { hashCode = hashCode * 59 + Label.GetHashCode(); } if (Category != null) { hashCode = hashCode * 59 + Category.GetHashCode(); } if (ItemType != null) { hashCode = hashCode * 59 + ItemType.GetHashCode(); } if (Kind != null) { hashCode = hashCode * 59 + Kind.GetHashCode(); } if (StateDescription != null) { hashCode = hashCode * 59 + StateDescription.GetHashCode(); } if (Tags != null) { hashCode = hashCode * 59 + Tags.GetHashCode(); } if (UID != null) { hashCode = hashCode * 59 + UID.GetHashCode(); } if (Advanced != null) { hashCode = hashCode * 59 + Advanced.GetHashCode(); } if (CommandDescription != null) { hashCode = hashCode * 59 + CommandDescription.GetHashCode(); } 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 (Description != null) { hashCode = hashCode * 59 + Description.GetHashCode(); } if (Id != null) { hashCode = hashCode * 59 + Id.GetHashCode(); } if (Label != null) { hashCode = hashCode * 59 + Label.GetHashCode(); } if (Tags != null) { hashCode = hashCode * 59 + Tags.GetHashCode(); } if (Properties != null) { hashCode = hashCode * 59 + Properties.GetHashCode(); } if (Category != null) { hashCode = hashCode * 59 + Category.GetHashCode(); } if (StateDescription != null) { hashCode = hashCode * 59 + StateDescription.GetHashCode(); } if (Advanced != null) { hashCode = hashCode * 59 + Advanced.GetHashCode(); } if (TypeUID != null) { hashCode = hashCode * 59 + TypeUID.GetHashCode(); } return(hashCode); } }