Click or drag to resize

ExtensionMethodsIsWithinRangeExclusive Method

Check to see if a float is inside of the bounds passed in.

Namespace:  DustProductions.Core
Assembly:  DustProductions.Core (in DustProductions.Core.dll) Version: (
public static bool IsWithinRangeExclusive(
	this float float1,
	float minValue,
	float maxValue


Type: SystemSingle
The float to check
Type: SystemSingle
The lower limit (exclusive)
Type: SystemSingle
The upper limit (exclusive)

Return Value

Type: Boolean
True if the float passed in is within the limits passed in, false otherwise

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Single. 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