mscorlib(4.0.0.0) API with additions
System.Linq.ILookup< TKey, TElement > Interface Template Reference

Defines an indexer, size property, and Boolean search method for data structures that map keys to T:System.Collections.Generic.IEnumerable`1 sequences of values. More...

Inheritance diagram for System.Linq.ILookup< TKey, TElement >:
[legend]
Collaboration diagram for System.Linq.ILookup< TKey, TElement >:
[legend]

Public Member Functions

bool Contains (TKey key)
 Determines whether a specified key exists in the T:System.Linq.ILookup`2. More...
 
- Public Member Functions inherited from System.Collections.IEnumerable
IEnumerator GetEnumerator ()
 Returns an enumerator that iterates through a collection. More...
 

Properties

int Count [get]
 Gets the number of key/value collection pairs in the T:System.Linq.ILookup`2. More...
 
IEnumerable< TElement > this[TKey key] [get]
 Gets the T:System.Collections.Generic.IEnumerable`1 sequence of values indexed by a specified key. More...
 

Detailed Description

Defines an indexer, size property, and Boolean search method for data structures that map keys to T:System.Collections.Generic.IEnumerable`1 sequences of values.

Template Parameters
TKeyThe type of the keys in the T:System.Linq.ILookup`2.
TElementThe type of the elements in the T:System.Collections.Generic.IEnumerable`1 sequences that make up the values in the T:System.Linq.ILookup`2.

Definition at line 10 of file ILookup.cs.

Member Function Documentation

◆ Contains()

bool System.Linq.ILookup< TKey, TElement >.Contains ( TKey  key)

Determines whether a specified key exists in the T:System.Linq.ILookup`2.

Parameters
keyThe key to search for in the T:System.Linq.ILookup`2.
Returns
true if key is in the T:System.Linq.ILookup`2; otherwise, false.

Implemented in System.Linq.Lookup< TKey, TElement >.

Property Documentation

◆ Count

int System.Linq.ILookup< TKey, TElement >.Count
get

Gets the number of key/value collection pairs in the T:System.Linq.ILookup`2.

Returns
The number of key/value collection pairs in the T:System.Linq.ILookup`2.

Definition at line 16 of file ILookup.cs.

◆ this[TKey key]

IEnumerable<TElement> System.Linq.ILookup< TKey, TElement >.this[TKey key]
get

Gets the T:System.Collections.Generic.IEnumerable`1 sequence of values indexed by a specified key.

Parameters
keyThe key of the desired sequence of values.
Returns
The T:System.Collections.Generic.IEnumerable`1 sequence of values indexed by the specified key.

Definition at line 26 of file ILookup.cs.


The documentation for this interface was generated from the following file: