For a concurrent dictionary
ConcurrentDictionary<string, C> dic;
(Where C is some class), does anyone know of a reference for the rules and restrictions for how one should perform operations on an instance of C, say C0, that is a value in the dictionary? Ie if we have one thread performing operations on C0 directly and another two threads performing operations on C0 via the dictionary, I would guess we could still potentially suffer race conditions? (We wouldn't if C was a primitive).
Thanks for any pointers you can suggest!
Best, Chris