How to clear the ConcurrentBag? it don\'t have any method like Clear or RemoveAll...
ConcurrentBag
Clear
RemoveAll
In the spirit of workarounds.. ConcurrentDictionary has an atomic Clear, but also allows you to quickly check if a key exists. 'Quickly' is a relative term of course, but depending on your usage it might be faster than enumerating a large stack.
ConcurrentDictionary