public static IReadOnlyDictionary <TToKey, TToValue> Cast <TFromKey, TFromValue, TToKey, TToValue>( this IReadOnlyDictionary <TFromKey, TFromValue> source) where TFromKey : TToKey where TFromValue : TToValue { return(DictConv.Cast <TFromKey, TFromValue, TToKey, TToValue>(source)); }
public static List <KeyValuePair <TKey, TValue> > ToSortedArrayByKey <TKey, TValue>(this Dictionary <TKey, TValue> dictionary) where TKey : IComparable <TKey> { return(DictConv.ToSortedArrayByKey(dictionary)); }
public static List <KeyValuePair <TKey, int> > ToSortedArrayByValue <TKey>(this Dictionary <TKey, int> dictionary, bool asc = true) { return(DictConv.ToSortedArrayByValue(dictionary, asc)); }
public static IEnumerable <Tuple <TKey, TValue> > ToTuple <TKey, TValue>(this IDictionary <TKey, TValue> dictionary) { return(DictConv.ToTuple(dictionary)); }
public static IDictionary <TKey, TValue> ToDictionary <TKey, TValue>(this IEnumerable <KeyValuePair <TKey, TValue> > source, IEqualityComparer <TKey> equalityComparer) { return(DictConv.ToDictionary(source, equalityComparer)); }
public static IDictionary <TKey, TValue> ToDictionary <TKey, TValue>(this IEnumerable <KeyValuePair <TKey, TValue> > source) { return(DictConv.ToDictionary(source)); }
public static Dictionary <TKey, TValue> ToDictionary <TKey, TValue>(this Hashtable hash) { return(DictConv.ToDictionary <TKey, TValue>(hash)); }