'Declaration
Public Overloads Function GroupBy (Of TKey,TElement)( _ ByVal keySelector As System.Linq.Expressions.Expression(Of Func(Of T,TKey)), _ ByVal elementSelector As System.Linq.Expressions.Expression(Of Func(Of T,TElement)) _ ) As View(Of GroupView(Of TKey,TElement))
public View<GroupView<TKey,TElement>> GroupBy<TKey,TElement>( System.Linq.Expressions.Expression<Func<T,TKey>> keySelector, System.Linq.Expressions.Expression<Func<T,TElement>> elementSelector )
Parameters
- keySelector
- A function to extract the key for each element.
- elementSelector
- A function to map each source element to a TElement.
Type Parameters
- TKey
- The type of the key returned by keySelector.
- TElement
- The type of the element to which elements of each group are projected.
Return Value
A view containing elements of type GroupView<TKey,TElement> each containing a key value and a view of the elements projected (mapped) from the elements having that key value.