public override int GetHashCode() { int hash = 1; if (SKU.Length != 0) { hash ^= SKU.GetHashCode(); } if (Timestamp != 0UL) { hash ^= Timestamp.GetHashCode(); } if (Quantity != 0) { hash ^= Quantity.GetHashCode(); } if (ActivityType != 0) { hash ^= ActivityType.GetHashCode(); } if (ActivityID.Length != 0) { hash ^= ActivityID.GetHashCode(); } if (OrderID.Length != 0) { hash ^= OrderID.GetHashCode(); } return(hash); }
/// <summary> /// Serves as a hash function for a particular type. /// </summary> /// <returns> /// A hash code for the current <see cref="T:System.Object"/>. /// </returns> public override int GetHashCode() { unchecked { var hashCode = (WorkflowID != null ? WorkflowID.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (ActivityID != null ? ActivityID.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (ScenarioID != null ? ScenarioID.GetHashCode() : 0); return(hashCode); } }
/// <summary> /// Serves as a hash function for a particular type. /// </summary> /// <returns> /// A hash code for the current <see cref="T:System.Object"/>. /// </returns> public override int GetHashCode() { unchecked { var hashCode = WorkflowID?.GetHashCode() ?? 0; hashCode = (hashCode * 397) ^ (ActivityID?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (ScenarioID?.GetHashCode() ?? 0); return(hashCode); } }