-
Notifications
You must be signed in to change notification settings - Fork 26
ToMap
Eugene Sadovoi edited this page Jul 7, 2016
·
1 revision
Creates a Map<TKey, TValue> from an Iterable according to a specified key selector function, and an element selector function.
ToMap(keySelector[, elementSelector])
A function to extract a key from each element: TKey keySelector(TSource)
A transform function to produce a result element value from each element: TValue elementSelector(TSource)
A Map<TKey, TValue> that contains values of type TElement selected from the input sequence.
The ToMap method forces immediate query evaluation and returns a map that contains the query results.