Skip to content

Why does casting to IDictionary cause problems? #7788

Answered by HaloFour
Ygg01 asked this question in Q&A
Discussion options

You must be logged in to vote

With IDictionary you're likely invoking the TryAdd extension method which, unless it explicitly detects ConcurrentDictionary, likely isn't a threadsafe implementation.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Ygg01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants