/// <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)); }
/// <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)); }