 | ObjectExtensionsInT(T, T) Method |
Returns true if obj is equal to any of the other arguments.
Namespace: SphinxConnector.FluentApi.UtilAssembly: SphinxConnector (in SphinxConnector.dll) Version: 6.0.0
Syntaxpublic static bool In<T>(
this T obj,
params T[] values
)
<ExtensionAttribute>
Public Shared Function In(Of T) (
obj As T,
ParamArray values As T()
) As Boolean
Parameters
- obj T
- The value to check for equality.
- values T
- The values to compare to.
Type Parameters
- T
- The type of obj and values.
Return Value
Booleantrue if
obj is equal to any of the other arguments, otherwise
false.
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