public static TValue GetValueOrDefault <TKey, TValue>(this FastImmutableDictionary <TKey, TValue> dictionary, TKey key, TValue defaultValue)
        {
            if (dictionary.TryGetValue(key, out var value))
            {
                return(value);
            }

            return(defaultValue);
        }
 public static TValue GetValueOrDefault <TKey, TValue>(this FastImmutableDictionary <TKey, TValue> dictionary, TKey key)
 {
     return(GetValueOrDefault(dictionary, key, default(TValue)));
 }
 public static FastImmutableDictionary <TKey, TValue> ToImmutableDictionary <TKey, TValue>(this FastImmutableDictionary <TKey, TValue> .Builder builder)
 {
     if (builder == null)
     {
         throw new ArgumentNullException(nameof(builder));
     }
     return(builder.ToImmutable());
 }