LinqExtensionsIn Method (Guid, IEnumerable) |
Returns true if list contains the specified id. 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 Guid id,
IEnumerable list
)
<ExtensionAttribute>
Public Shared Function In (
id As Guid,
list As IEnumerable
) As Boolean
public:
[ExtensionAttribute]
static bool In(
Guid^ id,
IEnumerable^ list
)
[<ExtensionAttribute>]
static member In :
id : Guid *
list : IEnumerable -> bool
Parameters
- id
- Type: SystemGuid
The id to search for. - list
- Type: System.CollectionsIEnumerable
The list in which to search for the id.
Return Value
Type:
Boolean
true if the list contains the id
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Guid. 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