Method DeferredFirst
DeferredFirst<TSource>(IQueryable<TSource>)
This method is the deferred implementation of the extension method
Declaration
public static QueryDeferred<TSource> DeferredFirst<TSource>(this IQueryable<TSource> source)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<TSource> | source | The System.Linq.IQueryable`1 to return the first element of. |
Returns
Type | Description |
---|---|
QueryDeferred<TSource> | The first element in source. |
Type Parameters
Name | Description |
---|---|
TSource | The type of the elements of source. |
DeferredFirst<TSource>(IQueryable<TSource>, Expression<Func<TSource, Boolean>>)
This method is the deferred implementation of the extension method
Declaration
public static QueryDeferred<TSource> DeferredFirst<TSource>(this IQueryable<TSource> source, Expression<Func<TSource, bool>> predicate)
where TSource : class
Parameters
Type | Name | Description |
---|---|---|
IQueryable<TSource> | source | An System.Linq.IQueryable`1 to return an element from. |
Expression<Func<TSource, System.Boolean>> | predicate | A function to test each element for a condition. |
Returns
Type | Description |
---|---|
QueryDeferred<TSource> | The first element in source that passes the test in predicate. |
Type Parameters
Name | Description |
---|---|
TSource | The type of the elements of source. |