Ejemplo n.º 1
0
 public static TValue ValueOrDefault <TKey, TValue>(this IDictionary <TKey, TValue> d, TKey key)
 {
     return(DictionaryExtensions.ValueOrDefault(d, key, default(TValue)));
 }
Ejemplo n.º 2
0
 public static IDictionary <TKey, TValue> EmptyIfNull <TKey, TValue>(this IDictionary <TKey, TValue> collection)
 {
     return(DictionaryExtensions.EmptyIfNull(collection, EqualityComparer <TKey> .Default));
 }