Why does Concurrent Dictionary not have a visible Add() Method?

前端 未结 2 1598
梦如初夏
梦如初夏 2021-01-12 07:41

I was just wondering how it was possible that ConcurrentDictionary does not have an Add method which is visible in the Visual Studio IDE. I only seem to get the TryX Methods

2条回答
  •  余生分开走
    2021-01-12 08:00

    That's because of explicit interface implementation. See http://msdn.microsoft.com/en-us/library/aa288461(v=vs.71).aspx

提交回复
热议问题