Method AsLookup
AsLookup<TKey, TValue>(IReadOnlyCollectionDictionary<TKey, TValue>)
Returns a live ILookup<TKey, TElement> view of the collection dictionary. The view reflects changes made to the underlying dictionary.
Declaration
public static ILookup<TKey, TValue> AsLookup<TKey, TValue>(this IReadOnlyCollectionDictionary<TKey, TValue> dictionary)
Parameters
Returns
| Type |
Description |
| ILookup<TKey, TValue> |
|
Type Parameters
| Name |
Description |
| TKey |
|
| TValue |
|
AsLookup<TKey, TValue>(IReadOnlyListDictionary<TKey, TValue>)
Returns a live ILookup<TKey, TElement> view of the collection dictionary. The view reflects changes made to the underlying dictionary.
Declaration
public static ILookup<TKey, TValue> AsLookup<TKey, TValue>(this IReadOnlyListDictionary<TKey, TValue> dictionary)
Parameters
Returns
| Type |
Description |
| ILookup<TKey, TValue> |
|
Type Parameters
| Name |
Description |
| TKey |
|
| TValue |
|
AsLookup<TKey, TValue>(IReadOnlySetDictionary<TKey, TValue>)
Returns a live ILookup<TKey, TElement> view of the collection dictionary. The view reflects changes made to the underlying dictionary.
Declaration
public static ILookup<TKey, TValue> AsLookup<TKey, TValue>(this IReadOnlySetDictionary<TKey, TValue> dictionary)
Parameters
Returns
| Type |
Description |
| ILookup<TKey, TValue> |
|
Type Parameters
| Name |
Description |
| TKey |
|
| TValue |
|