LinqExtensionsIn Method (Object, IEnumerable) |
Returns true if list contains the specified object. Primarily intended for use inside IQueryable/IEnumerable queries
Namespace:
Aloe.SystemFrameworks.Domain.LINQ
Assembly:
Aloe.SystemFrameworks.Domain (in Aloe.SystemFrameworks.Domain.dll) Version: 20.1.3.5
Syntaxpublic static bool In(
this Object obj,
IEnumerable list
)
<ExtensionAttribute>
Public Shared Function In (
obj As Object,
list As IEnumerable
) As Boolean
public:
[ExtensionAttribute]
static bool In(
Object^ obj,
IEnumerable^ list
)
[<ExtensionAttribute>]
static member In :
obj : Object *
list : IEnumerable -> bool
Parameters
- obj
- Type: SystemObject
The object to check. - list
- Type: System.CollectionsIEnumerable
The list in which to search the object.
Return Value
Type:
Booleantrue if the list contains the object
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Object. 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).
Remarks
.In is recognized by the domain objects query translator and is optimally executed as an efficient
data source command.
See Also