public override int GetHashCode() { unchecked { return(CurrentCulture.GetHashCode() * CurrentUICulture.GetHashCode() * ManagedThreadId.GetHashCode() * Priority.GetHashCode() * ThreadName.GetHashCode() * ThreadState.GetHashCode() * IsBackground.GetHashCode() * IsThreadPoolThread.GetHashCode()); } }
// ReSharper disable once MemberCanBePrivate.Global public override int GetHashCode() { int hashCode = HashKey + At.GetHashCode() + MachineName.GetHashCode() + ThreadName.GetHashCode() + Type.GetHashCode() + Level.Priority() + Line.GetHashCode(); return(hashCode); }
/// <summary> /// Returns a hash code for this instance. /// </summary> /// <returns> /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. /// </returns> public override int GetHashCode() => ThreadName.GetHashCode() ^ StartTime.GetHashCode() ^ EndTime?.GetHashCode() ?? 1024 ^ ThreadState.GetHashCode() ^ (int)Progress ^ ((object)ThreadData).GetHashCode();