/// <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 (Name != null) { hashCode = hashCode * 59 + Name.GetHashCode(); } if (IdentityId != null) { hashCode = hashCode * 59 + IdentityId.GetHashCode(); } if (Parameter != null) { hashCode = hashCode * 59 + Parameter.GetHashCode(); } if (ProcessInstance != null) { hashCode = hashCode * 59 + ProcessInstance.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 (Id != null) { hashCode = hashCode * 59 + Id.GetHashCode(); } if (ProcessId != null) { hashCode = hashCode * 59 + ProcessId.GetHashCode(); } if (IdentityId != null) { hashCode = hashCode * 59 + IdentityId.GetHashCode(); } if (AllowedToEmployeeNames != null) { hashCode = hashCode * 59 + AllowedToEmployeeNames.GetHashCode(); } if (TransitionTime != null) { hashCode = hashCode * 59 + TransitionTime.GetHashCode(); } if (Order != null) { hashCode = hashCode * 59 + Order.GetHashCode(); } if (InitialState != null) { hashCode = hashCode * 59 + InitialState.GetHashCode(); } if (DestinationState != null) { hashCode = hashCode * 59 + DestinationState.GetHashCode(); } if (Command != null) { hashCode = hashCode * 59 + Command.GetHashCode(); } return(hashCode); } }