Returns the maximal element of the given query, based on the given projection.

C# | Visual Basic | Visual C++ | J# |
public static T MaxEntry<T, S>( IQueryable<T> source, Expression<Func<T, S>> selector )
Public Shared Function MaxEntry(Of T, S) ( _ source As IQueryable(Of T), _ selector As Expression(Of Func(Of T, S)) _ ) As T
public: generic<typename T, typename S> static T MaxEntry( IQueryable<T>^ source, Expression<Func<T, S>^>^ selector )

- T
- Type of query result
- S
- Type of projected element

- source (IQueryable<(Of <(T>)>))
- Query which produces potential results
- selector (Expression<(Of <(Func<(Of <(T, S>)>)>)>))
- Selector used to select the property used for comparison

The maximal element matching the query, according to the projection