NumberExtensionsIsInRange Method MediaSuite 3.1.1889.0
Checks whether a value is in an interval that is inclusive.

Namespace: StreamCoders.Helpers
Assembly: MediaBase (in MediaBase.dll) Version: 2.0.5.0 (2.0.5.0)
Syntax

public static bool IsInRange(
	this int value,
	int lowerBound,
	int upperBound
)

Parameters

value
Type: SystemInt32
The value to act on.
lowerBound
Type: SystemInt32
The lower bound.
upperBound
Type: SystemInt32
The upper bound.

Return Value

Type: Boolean
true if in range, false if not.

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

Reference