 | MathUtilsMinT Method (T, T) |
Returns the minimum value of the two passed values.
Namespace: Slash.Math.UtilsAssembly: Slash.Math (in Slash.Math.dll) Version: 1.0.6018.40177
Syntaxpublic static T Min<T>(
T a,
T b
)
where T : Object, IComparable<T>
Public Shared Function Min(Of T As {Object, IComparable(Of T)}) (
a As T,
b As T
) As T
public:
generic<typename T>
where T : Object, IComparable<T>
static T Min(
T a,
T b
)
static member Min :
a : 'T *
b : 'T -> 'T when 'T : Object and IComparable<'T>
Parameters
- a
- Type: T
First value. - b
- Type: T
Second value.
Type Parameters
- T
- Type of the values to compare.
Return Value
Type:
T First value if it is smaller than the second; otherwise, the second value.
See Also