Click or drag to resize

CollectionExtensions.GetOrDefault Method

Overload List
  Name Description
Public Extension Method GetOrDefault<TKey, TValue> (IDictionary<TKey, TValue> , TKey) Attempts to get the value for the given key and returns the default value instead if the key does not exist in the IDictionary<TKey, TValue>.
Public Extension Method GetOrDefault<TKey, TValue> (IDictionary<TKey, TValue> , TKey, Func<TKey, TValue> ) Attempts to get the value for the given key and returns the default value instead if the key does not exist in the IDictionary<TKey, TValue>.
Top
See Also