Exemplo n.º 1
0
 public bool TryUpdate(TKey key, TValue newValue, TValue comparisonValue)
 {
     CheckKey(key);
     return(internalDictionary.CompareExchange(Hash(key), key, Make(key, newValue), (e) => e.Value.Equals(comparisonValue)));
 }