Пример #1
0
 public TValue GetValueOrCreate(TKey key, Func <TKey, TValue> factory)
 {
     return(IDictionaryExtensions.GetValueOrCreate(_key2ValueDictionary, key, factory));
 }
Пример #2
0
 public TKey GetKeyOrCreate(TValue value, Func <TValue, TKey> factory)
 {
     return(IDictionaryExtensions.GetValueOrCreate(_value2KeyDictionary, value, factory));
 }