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

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>)

Applies to