Click or drag to resize

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
Syntax
public static bool In(
	this Object obj,
	IEnumerable list
)

Parameters

obj
Type: SystemObject
The object to check.
list
Type: System.CollectionsIEnumerable
The list in which to search the object.

Return Value

Type: Boolean
true 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