 | ObjectExtensionsIntervalT(T, IEnumerableT) Method |
Returns the index of the value that is less than obj.
Namespace: SphinxConnector.FluentApi.UtilAssembly: SphinxConnector (in SphinxConnector.dll) Version: 6.0.0
Syntaxpublic static int Interval<T>(
this T obj,
IEnumerable<T> values
)
<ExtensionAttribute>
Public Shared Function Interval(Of T) (
obj As T,
values As IEnumerable(Of T)
) As Integer
Parameters
- obj T
- The value to check.
- values IEnumerableT
- The values defining the interval.
Type Parameters
- T
- The type of obj and values.
Return Value
Int32The index of the value that is less than
obj.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
T. 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