If using ConcurrentDictionary, its AddOrUpdate method will call "addValueFactory" method more than once if this method is executed in more threads.There is this line in documentation:Adds a key/value pair ... if the key does not already exist, or updates a key/value pair ... if the key already exists.http://msdn.microsoft.com/en-us/library/ee378675.aspxThere should be better documentation of how this works and there must be info, that addValueFactory can be called more than once and its value is not used and added to dictionary in some cases.
Visual Studio/Team Foundation Server/.NET Framework Tooling version
Steps to reproduce
Product Language
Operating System
Operating System Language
Actual results
Expected results
Please wait...