DataSource for Entity Framework in WPF
C1.LiveLinq.LiveViews Namespace / View<T> Class / GroupBy Method / GroupBy<TKey,TElement>(Expression<Func<T,TKey>>,Expression<Func<T,TElement>>) Method
The type of the key returned by keySelector.
The type of the element to which elements of each group are projected.
A function to extract the key for each element.
A function to map each source element to a TElement.

In This Topic
    GroupBy<TKey,TElement>(Expression<Func<T,TKey>>,Expression<Func<T,TElement>>) Method
    In This Topic
    Groups the elements of a view according to a specified key selector function and projects the elements for each group by using a specified function.
    Syntax

    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.
    See Also