Ejemplo n.º 1
0
 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));
 }
Ejemplo n.º 2
0
 public static List <KeyValuePair <TKey, TValue> > ToSortedArrayByKey <TKey, TValue>(this Dictionary <TKey, TValue> dictionary) where TKey : IComparable <TKey>
 {
     return(DictConv.ToSortedArrayByKey(dictionary));
 }
Ejemplo n.º 3
0
 public static List <KeyValuePair <TKey, int> > ToSortedArrayByValue <TKey>(this Dictionary <TKey, int> dictionary, bool asc = true)
 {
     return(DictConv.ToSortedArrayByValue(dictionary, asc));
 }
Ejemplo n.º 4
0
 public static IEnumerable <Tuple <TKey, TValue> > ToTuple <TKey, TValue>(this IDictionary <TKey, TValue> dictionary)
 {
     return(DictConv.ToTuple(dictionary));
 }
Ejemplo n.º 5
0
 public static IDictionary <TKey, TValue> ToDictionary <TKey, TValue>(this IEnumerable <KeyValuePair <TKey, TValue> > source, IEqualityComparer <TKey> equalityComparer)
 {
     return(DictConv.ToDictionary(source, equalityComparer));
 }
Ejemplo n.º 6
0
 public static IDictionary <TKey, TValue> ToDictionary <TKey, TValue>(this IEnumerable <KeyValuePair <TKey, TValue> > source)
 {
     return(DictConv.ToDictionary(source));
 }
Ejemplo n.º 7
0
 public static Dictionary <TKey, TValue> ToDictionary <TKey, TValue>(this Hashtable hash)
 {
     return(DictConv.ToDictionary <TKey, TValue>(hash));
 }