Grouping<TKey,TElement> Class

Definition

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
IEnumerable<TElement> IEnumerable IGrouping<TKey,TElement>

Constructors

Grouping<TKey,TElement>(TKey, IEnumerable<TElement>)

Initializes a new instance of the Grouping<TKey,TElement> class.

Properties

Key System.Linq.IGrouping`2.Key

Methods

GetEnumerator() System.Collections.Generic.IEnumerable`1.GetEnumerator

Explicit Interface Implementations

IEnumerable.GetEnumerator() System.Collections.IEnumerable.GetEnumerator

Extension Methods

EmptyIfNull<T>(IEnumerable<T>)

Applies to