public override int GetHashCode() { unchecked { var hashCode = (StateIdentifier != null ? StateIdentifier.GetHashCode() : 0); hashCode = (hashCode * 397) ^ EqualityComparer <TD> .Default.GetHashCode(Data); hashCode = (hashCode * 397) ^ Timeout.GetHashCode(); return(hashCode); } }
/// <summary> /// Serves as a hash function for a particular type. <see cref="M:System.Object.GetHashCode"/> is suitable for /// use in hashing algorithms and data structures like a hash table. /// </summary> /// <returns> /// A hash code for the current <see cref="T:System.Object"/>. /// </returns> public override int GetHashCode() { return(StateIdentifier.GetHashCode()); }