src/openSourceC.DotNetLibrary.Core/Threading/CompareThreadByManagedThreadId.cs
/// <summary>
///		Compares two <see cref="T:Thread"/> objects and returns a value indicating whether
///		one is less than, equal to, or greater than the other.
/// </summary>
/// <param name="x">The first <see cref="T:Thread"/> to compare.</param>
/// <param name="y">The second <see cref="T:Thread"/> to compare.</param>
/// <returns></returns>
Compares two  objects and returns a value indicating whether
one is less than, equal to, or greater than the other.
Compares two objects and returns a value indicating whether one is less than equal to or greater than the other .
public int Compare(Thread? x, Thread? y)
		{
			if (x is null && y is null)
			{
				return 0;
			}
			else if (x is null)
			{
				return int.MinValue;
			}
			else if (y is null)
			{
				return int.MaxValue;
			}
			int result = x.ManagedThreadId.CompareTo(y.ManagedThreadId);
			if (result != 0)
			{
				return result;
			}
			return x.GetHashCode().CompareTo(y.GetHashCode());
		}
public int Compare ( Thread ? x , Thread ? y ) { if ( x is null && y is null ) { return 0 ; } else if ( x is null ) { return int . MinValue ; } else if ( y is null ) { return int . MaxValue ; } int result = x . ManagedThreadId . CompareTo ( y . ManagedThreadId ) ; if ( result != 0 ) { return result ; } return x . GetHashCode ( ) . CompareTo ( y . GetHashCode ( ) ) ; }
Compares two  objects and returns a value indicating whether
one is less than, equal to, or greater than the other.
Compares two objects and returns a value indicating whether one is less than equal to or greater than the other .
None
x
Thread?
The first  to compare.
The first to compare .
y
Thread?
The second  to compare.
The second to compare .