Utility.LimitRange<T> Method

Clamps a value between the specified lower and upper limits.
Public Shared Sub LimitRange(Of  _ 
T As IComparable)( _ 
ByVal low As T, _ 
ByRef value As T, _ 
ByVal high As T _ 
)
This language is not supported or no code example is available.
public static void LimitRange<T>( 
T low
ref T value
T high 

where T : IComparable
This language is not supported or no code example is available.

Type Parameters

T

The type of the value to clamp

Parameters

low
T

Lower limit

value
T

The value

high
T

Upper limit

.NET Framework

Supported in: 4.8

In this article

Definition