Grouping<TKey,TElement> Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A trivial implementation of IGrouping<TKey,TElement>.
generic <typename TKey, typename TElement>
public ref class Grouping : System::Collections::Generic::IEnumerable<TElement>, System::Linq::IGrouping<TKey, TElement>
public class Grouping<TKey,TElement> : System.Collections.Generic.IEnumerable<TElement>, System.Linq.IGrouping<TKey,TElement>
type Grouping<'Key, 'Element> = class
interface IGrouping<'Key, 'Element>
interface seq<'Element>
interface IEnumerable
Public Class Grouping(Of TKey, TElement)
Implements IEnumerable(Of TElement), IGrouping(Of TKey, TElement)
Type Parameters
- TKey
The key of the group.
- TElement
The element type of the group.
- Inheritance
-
Grouping<TKey,TElement>
- Implements
Constructors
Grouping<TKey,TElement>(TKey, IEnumerable<TElement>) |
Initializes a new instance of the Grouping<TKey,TElement> class. |
Properties
Key | Gets the key of the IGrouping<TKey,TElement>. |
Methods
GetEnumerator() | Returns an enumerator that iterates through the collection. |
Explicit Interface Implementations
IEnumerable.GetEnumerator() | Returns an enumerator that iterates through a collection. |
Extension Methods
EmptyIfNull<T>(IEnumerable<T>) |
Return this enumeration in case it is not null. In case it is null return empty enumeration. |