Method DeferredLast
DeferredLast<TSource>(IQueryable<TSource>)
This method is the deferred implementation of the extension method
Declaration
public static QueryDeferred<TSource> DeferredLast<TSource>(this IQueryable<TSource> source)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<TSource> | source | An System.Linq.IQueryable`1 to return the last element of. |
Returns
Type | Description |
---|---|
QueryDeferred<TSource> | The value at the last position in source. |
Type Parameters
Name | Description |
---|---|
TSource | The type of the elements of source. |
DeferredLast<TSource>(IQueryable<TSource>, Expression<Func<TSource, Boolean>>)
This method is the deferred implementation of the extension method
Declaration
public static QueryDeferred<TSource> DeferredLast<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 last element in source that passes the test specified by predicate. |
Type Parameters
Name | Description |
---|---|
TSource | The type of the elements of source. |