Returns val unless it falls outside the min/max range in which case the appropriate bound is returned.
Namespace:
NetQuarry
Assembly:
EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax public static int MinMax(
int min,
int max,
int val
)
Public Shared Function MinMax (
min As Integer,
max As Integer,
val As Integer
) As Integer
Parameters
- min
- Type: SystemInt32
The minimum value to return. - max
- Type: SystemInt32
The maximum value to return. - val
- Type: SystemInt32
The value to bounds check.
Return Value
Type:
Int32Returns val unless it falls outside the min/max range in which case the appropriate bound is returned.
See Also