Click or drag to resize

imbValueChangerscheckRange Method

imbSCI | imbACE | imbNLP | imbWEM | imbWBI
Checks the range - makes sure that input value is inside min and max (including exact min and max)

Namespace:  imbSCI.Core.extensions.math
Assembly:  imbSCI.Core (in imbSCI.Core.dll) Version: 0.3.58.
Syntax
C#
public static int checkRange(
	this int input,
	int max,
	int min = 0,
	bool doLoop = true
)
Request Example View Source

Parameters

input
Type: SystemInt32
The input.
max
Type: SystemInt32
The maximum.
min (Optional)
Type: SystemInt32
The minimum.
doLoop (Optional)
Type: SystemBoolean
if set to true [do loop].

Return Value

Type: Int32
Corrected value of input accorting to setum

Usage 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).
See Also