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