| SystemExtensionsIsBetweenT Method |
Checks if the specified value is between the specified lower and higher bound (exclusive).
Namespace:
Slash.Unity.DataBind.Core.Utils
Assembly:
Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax public static bool IsBetween<T>(
this T value,
T low,
T high
)
where T : Object, IComparable<T>
<ExtensionAttribute>
Public Shared Function IsBetween(Of T As {Object, IComparable(Of T)}) (
value As T,
low As T,
high As T
) As Boolean
public:
[ExtensionAttribute]
generic<typename T>
where T : Object, IComparable<T>
static bool IsBetween(
T value,
T low,
T high
)
[<ExtensionAttribute>]
static member IsBetween :
value : 'T *
low : 'T *
high : 'T -> bool when 'T : Object and IComparable<'T>
Parameters
- value
- Type: T
Value to compare. - low
- Type: T
Lower bound. - high
- Type: T
Higher bound (exclusive).
Type Parameters
- T
- Type of objects to compare.
Return Value
Type:
Boolean True if the value is between the lower and higher bound (exclusive); otherwise, false.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type . 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