Exemplo n.º 1
0
 // See issue #84
 /// <inheritdoc cref="TryGetValue{K,V}(Dictionary{K,V},K,V)"/>
 public static Maybe <V> TryGetValue <K, V>(this IDictionaryAndReadOnly <K, V> dict, K key)
 {
     return(TryGetValue((IReadOnlyDictionary <K, V>)dict, key));
 }
Exemplo n.º 2
0
 /// <summary>Disambiguating overload.</summary>
 public static V TryGetValue <K, V>(this IDictionaryAndReadOnly <K, V> dict, K key, V defaultValue)
 => TryGetValue((IReadOnlyDictionary <K, V>)dict, key, defaultValue);