Exemplo n.º 1
0
 /// <summary>
 /// Attempts to remove and return the value that has the specified key
 /// from the concurrent dictionary.
 /// </summary>
 public static bool TryRemove(SystemConcurrent.ConcurrentDictionary <TKey, TValue> concurrentDictionary,
                              SystemGenerics.KeyValuePair <TKey, TValue> item)
 {
     Helper.Interleave();
     return(concurrentDictionary.TryRemove(item));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Attempts to remove and return the value that has the specified key
 /// from the concurrent dictionary.
 /// </summary>
 public static bool TryRemove(SystemConcurrent.ConcurrentDictionary <TKey, TValue> concurrentDictionary,
                              TKey key, out TValue value)
 {
     Helper.Interleave();
     return(concurrentDictionary.TryRemove(key, out value));
 }