I've been searching for a way to remove an item from a concurrent dictionary. For some reason there's no Remove method, but there's a TryRemove method, that returns a bool. In MSDN it's said that false is returned in case the process "failed", but doesn't say in what way.
1st option only: when there's no key to remove; locking is ConcurrentDictionary internal implementation and it should not be visible from outside.
According to comment by Dmitry Bychenko.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With