I wonder if GetOrCreate extension method thread-safe? From the source code it seems to perform 2 steps separately - check if key exists and then add if not. No lock is being used, so is it thread-safe?
I wonder if GetOrCreate extension method thread-safe?
From the source code it seems to perform 2 steps separately - check if key exists and then add if not. No lock is being used, so is it thread-safe?