'Declaration Public Overloads Shared Function GroupBy (Of TSource,TKey)( _ ByVal source As IIndexedSource(Of TSource), _ ByVal keySelector As Expression(Of Func(Of TSource,TKey)) _ ) As IIndexedSource(Of IGrouping(Of TKey,TSource))
public static IIndexedSource<IGrouping<TKey,TSource>> GroupBy<TSource,TKey>( IIndexedSource<TSource> source, Expression<Func<TSource,TKey>> keySelector )
Parameters
- source
- An C1.LiveLinq.Indexing.IIndexedSource<T> whose elements to group
- keySelector
- A function to extract the key for each element.
Type Parameters
- TSource
- The type of the elements of source.
- TKey
- The type of the key returned by keySelector.
Return Value
A collection of IGrouping objects each containing a sequence of objects and a key.