Enumerable..::.GroupBy Method
This page is specific to:.NET Framework Version:3.5Silverlight 3
.NET Framework Class Library
Enumerable..::.GroupBy Method

Groups the elements of a sequence.

Overload List

  NameDescription
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkGroupBy<(Of <(TSource, TKey>)>)(IEnumerable<(Of <(TSource>)>), Func<(Of <(TSource, TKey>)>))Groups the elements of a sequence according to a specified key selector function.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkGroupBy<(Of <(TSource, TKey>)>)(IEnumerable<(Of <(TSource>)>), Func<(Of <(TSource, TKey>)>), IEqualityComparer<(Of <(TKey>)>))Groups the elements of a sequence according to a specified key selector function and compares the keys by using a specified comparer.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkGroupBy<(Of <(TSource, TKey, TElement>)>)(IEnumerable<(Of <(TSource>)>), Func<(Of <(TSource, TKey>)>), Func<(Of <(TSource, TElement>)>))Groups the elements of a sequence according to a specified key selector function and projects the elements for each group by using a specified function.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkGroupBy<(Of <(TSource, TKey, TResult>)>)(IEnumerable<(Of <(TSource>)>), Func<(Of <(TSource, TKey>)>), Func<(Of <(TKey, IEnumerable<(Of <(TSource>)>), TResult>)>))Groups the elements of a sequence according to a specified key selector function and creates a result value from each group and its key.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkGroupBy<(Of <(TSource, TKey, TElement>)>)(IEnumerable<(Of <(TSource>)>), Func<(Of <(TSource, TKey>)>), Func<(Of <(TSource, TElement>)>), IEqualityComparer<(Of <(TKey>)>))Groups the elements of a sequence according to a key selector function. The keys are compared by using a comparer and each group's elements are projected by using a specified function.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkGroupBy<(Of <(TSource, TKey, TElement, TResult>)>)(IEnumerable<(Of <(TSource>)>), Func<(Of <(TSource, TKey>)>), Func<(Of <(TSource, TElement>)>), Func<(Of <(TKey, IEnumerable<(Of <(TElement>)>), TResult>)>))Groups the elements of a sequence according to a specified key selector function and creates a result value from each group and its key. The elements of each group are projected by using a specified function.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkGroupBy<(Of <(TSource, TKey, TResult>)>)(IEnumerable<(Of <(TSource>)>), Func<(Of <(TSource, TKey>)>), Func<(Of <(TKey, IEnumerable<(Of <(TSource>)>), TResult>)>), IEqualityComparer<(Of <(TKey>)>))Groups the elements of a sequence according to a specified key selector function and creates a result value from each group and its key. The keys are compared by using a specified comparer.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkGroupBy<(Of <(TSource, TKey, TElement, TResult>)>)(IEnumerable<(Of <(TSource>)>), Func<(Of <(TSource, TKey>)>), Func<(Of <(TSource, TElement>)>), Func<(Of <(TKey, IEnumerable<(Of <(TElement>)>), TResult>)>), IEqualityComparer<(Of <(TKey>)>))Groups the elements of a sequence according to a specified key selector function and creates a result value from each group and its key. Key values are compared by using a specified comparer, and the elements of each group are projected by using a specified function.
Top
See Also

Reference

© 2009 Microsoft Corporation. All rights reserved.   Terms of Use | Trademarks | Privacy Statement
Page view tracker
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Do you like the tabbed code blocks?
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
Classic
Lightweight Beta
ScriptFree
Switch View