Table of Contents

Class DictionaryExtensions

Namespace
RisingV.Shared.Extensions
Assembly
RisingV.Shared.dll

Provides extension methods for converting a dictionary to a map.

public static class DictionaryExtensions
Inheritance
DictionaryExtensions
Inherited Members

Methods

ToMap<TSource, TKey>(Dictionary<TKey, TSource>, Func<TSource, TKey>)

Converts a dictionary to a map using the specified key selector.

public static Map<TKey, TSource> ToMap<TSource, TKey>(this Dictionary<TKey, TSource> source, Func<TSource, TKey> keySelector) where TKey : notnull

Parameters

source Dictionary<TKey, TSource>
keySelector Func<TSource, TKey>

Returns

Map<TKey, TSource>

Type Parameters

TSource
TKey