c# - Why does Concurrent Dictionary not have a visible Add() Method? -
i wondering how possible concurrentdictionary not have add method visible in visual studio ide. seem tryx methods e.g tryadd, tryupdate etc.
i can see concurrentdictionary
implements idictionary
, if cast idictionary
add method back.
i have looked @ class through ilspy , can see add method implemented , call concurrent tryadd
method under hood.
i expecting see sort of attribute on add method surpress not seeing anything.
has been baked ide microsoft hide add method default ??
if shed light on appreciated
that's because of explicit interface implementation. see http://msdn.microsoft.com/en-us/library/aa288461(v=vs.71).aspx
Comments
Post a Comment