public override int GetHashCode() { unchecked // Overflow is fine, just wrap { int hash = ProcessTaskId.GetHashCode(); // Suitable nullity checks etc, of course :) if (ProcessTaskName != null) { hash = hash * 17 + ProcessTaskName.GetHashCode(); } if (ProcessTaskOwner != null) { hash = hash * 17 + ProcessTaskOwner.GetHashCode(); } if (ParentTaskId != null) { hash = hash * 17 + ParentTaskId.GetHashCode(); } hash = hash * 17 + Priority.GetHashCode(); if (ProcessKey != null) { hash = hash * 17 + ProcessKey.GetHashCode(); } if (ProcessInstanceId != null) { hash = hash * 17 + ProcessInstanceId.GetHashCode(); } if (ProcessItemDefinitionId != null) { hash = hash * 17 + ProcessItemDefinitionId.GetHashCode(); } hash = hash * 17 + SuspensionState.GetHashCode(); return(hash); } }
public override int GetHashCode() { unchecked // Overflow is fine, just wrap { int hash = ProcessInstanceId.GetHashCode(); // Suitable nullity checks etc, of course :) if (ProcessKey != null) { hash = hash * 17 + ProcessKey.GetHashCode(); } if (ProcessInstanceName != null) { hash = hash * 17 + ProcessInstanceName.GetHashCode(); } if (BusinessKey != null) { hash = hash * 17 + BusinessKey.GetHashCode(); } hash = hash * 17 + SuspensionState.GetHashCode(); if (UserCandidates != null) { hash = hash * 17 + UserCandidates.GetHashCode(); } if (Owner != null) { hash = hash * 17 + Owner.GetHashCode(); } return(hash); } }