DictionaryExtensionsTryRemove Method

Overload List

TryRemoveTKey, TValue(IDictionaryTKey, TValue, TKey) Tries to remove the value with the specified key from the specified dictionary.
TryRemoveTKey, TValue(IDictionaryTKey, TValue, TKey, TValue) Tries to remove and return the value with the specified key from the specified dictionary. The operation is thread safe if dictionary is a ThreadSafeDictionaryTKey, TValue, ConcurrentDictionaryTKey, TValue or LockingDictionaryTKey, TValue instance. For other IDictionaryTKey, TValue implementations the caller should care about thread safety if needed.

See Also