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