Method DeferredAny
DeferredAny<TSource>(IQueryable<TSource>)
This method is the deferred implementation of the extension method
Declaration
public static QueryDeferred<bool> DeferredAny<TSource>(this IQueryable<TSource> source)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<TSource> | source | A sequence to check for being empty. |
Returns
Type | Description |
---|---|
QueryDeferred<System.Boolean> | true if the source sequence contains any elements; otherwise, false. |
Type Parameters
Name | Description |
---|---|
TSource | The type of the elements of source. |
DeferredAny<TSource>(IQueryable<TSource>, Expression<Func<TSource, Boolean>>)
This method is the deferred implementation of the extension method
Declaration
public static QueryDeferred<bool> DeferredAny<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, bool>> predicate)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<TSource> | source | A sequence whose elements to test for a condition. |
Expression<Func<TSource, System.Boolean>> | predicate | A function to test each element for a condition. |
Returns
Type | Description |
---|---|
QueryDeferred<System.Boolean> | true if any elements in the source sequence pass the test in the specified predicate; otherwise, false. |
Type Parameters
Name | Description |
---|---|
TSource | The type of the elements of source. |