CommonMidT Method

Returns the value that is neither the largest nor the smallest.

Definition

Namespace: Gemstone
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.186 -- Release Build+f3c68cd1a13b4f341e0d0fc1ddec1eb68d3eeb61
public static T Mid<T>(
	T value1,
	T value2,
	T value3
)
where T : Object, IComparable<T>

Parameters

value1  T
Value 1.
value2  T
Value 2.
value3  T
Value 3.

Type Parameters

T
Type of the objects passed to and returned from this method.

Return Value

T
Result is the value that is neither the largest nor the smallest.

See Also