Namespace: DeltaEngine.ExtensionsAssembly: DeltaEngine (in DeltaEngine.dll) Version: 1.1.1.0 (1.1.1)
public static int Clamp(
this int value,
int min,
int max
)
public static int Clamp(
this int value,
int min,
int max
)
<ExtensionAttribute>
Public Shared Function Clamp (
value As Integer,
min As Integer,
max As Integer
) As Integer
<ExtensionAttribute>
Public Shared Function Clamp (
value As Integer,
min As Integer,
max As Integer
) As Integer
public:
[ExtensionAttribute]
static int Clamp(
int value,
int min,
int max
)
public:
[ExtensionAttribute]
static int Clamp(
int value,
int min,
int max
)
static member Clamp :
value : int *
min : int *
max : int -> int
static member Clamp :
value : int *
min : int *
max : int -> int
Return Value
Type:
Int32Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Int32. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).