ThreadSafeDictionaryTKey, TValueTryRemove(TKey, TValue) Method
Namespace: KGySoft.CollectionsAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
public bool TryRemove(
TKey key,
out TValue value
)
Public Function TryRemove (
key As TKey,
<OutAttribute> ByRef value As TValue
) As Boolean
public:
bool TryRemove(
TKey key,
[OutAttribute] TValue% value
)
member TryRemove :
key : 'TKey *
value : 'TValue byref -> bool
- key TKey
- Key of the item to remove.
- value TValue
- When this method returns, contains the value removed from the ThreadSafeDictionaryTKey, TValue,
or the default value of the TValue type if key does not exist.
Boolean if the element is successfully removed; otherwise,
.