Syntax
public
static
SortedList<TKey, TSource> ToSortedList<TSource, TKey>(IEnumerable<TSource> source, Func<TSource, TKey> keySelector, IComparer<TKey> comparer)
Parameters
- source
- Type: System.Collections.Generic.IEnumerable<TSource>
- keySelector
- Type: System.Func<TSource, TKey>
- comparer
- Type: System.Collections.Generic.IComparer<TKey>