Click or drag to resize

minmaxMinMaxT Method (T, T, IComparerT)

Reorganizes two values to have strict order.

Namespace:  WhetStone.Comparison
Assembly:  WhetStone (in WhetStone.dll) Version: 1.0.4.0 (1.0.0.0)
Syntax
C#
public static bool MinMax<T>(
	ref T min,
	ref T max,
	IComparer<T> comp = null
)

Parameters

min
Type: T
The smaller value.
max
Type: T
The larger value.
comp (Optional)
Type: System.Collections.GenericIComparerT
The IComparerT to compare the values.

Type Parameters

T
The type of the values

Return Value

Type: Boolean
Whether the two values were switched.
See Also