Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
class Program {
static void Main(string[] args) {
var dict = new ConcurrentDictionary<string, ConcurrentBag<string>>();
.ForAll(x => dict.AddOrUpdate(
new ConcurrentBag<string>() { x },
(y, z) => { z.Add(y); return z; }));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.