In This Topic
Clamps a value between the specified lower and upper limits.
Syntax
'Declaration
Public Shared Sub LimitRange(Of As IComparable)( _
ByVal As , _
ByRef As , _
ByVal As _
)
public static void LimitRange<>(
,
ref ,
)
where T: IComparable
Parameters
- low
- Lower limit
- value
- The value
- high
- Upper limit
Type Parameters
- T
- The type of the value to clamp
See Also