I'm just wondering how it is possible that ConcurrentDictionary does not have the Add method that is visible in Visual Studio. I only seem to get TryX Methods like TryAdd, TryUpdate etc.
I see that ConcurrentDictionary implements IDictionary , and if I drop it on an IDictionary , I return the add method.
I looked through the class through iLSpy, and I see that the add method is fully implemented and actually calls the Concurrent TryAdd method under the hood.
I expected to see some attribute of the Add method to push it, but I canβt see anything.
Was this done in the Microsoft IDE to hide the Add method by default?
If anyone can shed light on this, it will be appreciated
source share