Method DeferredContains
DeferredContains<TSource>(IQueryable<TSource>, TSource)
This method is the deferred implementation of the extension method
Declaration
public static QueryDeferred<bool> DeferredContains<TSource>(this IQueryable<TSource> source, TSource item)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<TSource> | source | An System.Linq.IQueryable`1 in which to locate item. |
TSource | item | The object to locate in the sequence. |
Returns
Type | Description |
---|---|
QueryDeferred<System.Boolean> | true if the input sequence contains an element that has the specified value; otherwise, false. |
Type Parameters
Name | Description |
---|---|
TSource | The type of the elements of source. |
DeferredContains<TSource>(IQueryable<TSource>, TSource, IEqualityComparer<TSource>)
This method is the deferred implementation of the extension method
Declaration
public static QueryDeferred<bool> DeferredContains<TSource>(this IQueryable<TSource> source, TSource item, IEqualityComparer<TSource> comparer)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<TSource> | source | An System.Linq.IQueryable`1 in which to locate item. |
TSource | item | The object to locate in the sequence. |
IEqualityComparer<TSource> | comparer | An System.Collections.Generic.IEqualityComparer`1 to compare values. |
Returns
Type | Description |
---|---|
QueryDeferred<System.Boolean> | true if the input sequence contains an element that has the specified value; otherwise, false. |
Type Parameters
Name | Description |
---|---|
TSource | The type of the elements of source. |