BuildMaster SDK Reference
Version:

ToSortedList<TSource, TKey, TValue>(System.Collections.Generic.IEnumerable<TSource> source, System.Func<TSource, TKey> keySelector, System.Func<TSource, TValue> valueSelector, System.Collections.Generic.IComparer<TKey> comparer) Method

Syntax

public static SortedList<TKey, TValue> ToSortedList<TSource, TKey, TValue>(IEnumerable<TSource> source, Func<TSource, TKey> keySelector, Func<TSource, TValue> valueSelector, IComparer<TKey> comparer)

Parameters

source
Type: System.Collections.Generic.IEnumerable<TSource>
keySelector
Type: System.Func<TSource, TKey>
valueSelector
Type: System.Func<TSource, TValue>
comparer
Type: System.Collections.Generic.IComparer<TKey>