MSDN states that the enumerator returned from the dictionary does not represent a moment-in-time snapshot of the dictionary. Although it will be rarely needed in multithreaded environment, but if one wants, what is the best way to get the moment-in-time snapshot of ConcurrentDictionary?
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
- How to know full paths to DLL's from .csproj f
Just call
ToArray()
method.Here is a source code: