Concurrent Dictionary Correct Usage

前端 未结 5 944
名媛妹妹
名媛妹妹 2020-12-13 05:27

Am I right in thinking this is the correct use of a Concurrent Dictionary

private ConcurrentDictionary myDic = new ConcurrentDictionary

        
5条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-13 05:56

    Yes, you are right.

    That and the possibility to enumerate the dictionary on one thread while changing it on another thread are the only means of existence for that class.

提交回复
热议问题