コード例 #1
0
 public static TValue ValueOrDefault <TKey, TValue>(this IDictionary <TKey, TValue> d, TKey key)
 {
     return(DictionaryExtensions.ValueOrDefault(d, key, default(TValue)));
 }
コード例 #2
0
 public static IDictionary <TKey, TValue> EmptyIfNull <TKey, TValue>(this IDictionary <TKey, TValue> collection)
 {
     return(DictionaryExtensions.EmptyIfNull(collection, EqualityComparer <TKey> .Default));
 }