In C #, can multiple threads read and write to the dictionary if each thread accesses only one element in the dictionary and never accesses the other?
No, the dictionary is not thread safe.
Except for changing the contents of the reference type (object), which is stored as a value in the dictionary.
In .NET 4 we will have System.Collections.Concurrent.ConcurrentDictionary.
System.Collections.Concurrent.ConcurrentDictionary
No, they cannot. A dictionary is not thread safe:
(TKey, TValue) , . , - . , , . , .
Source: https://habr.com/ru/post/1740272/More articles:ASP.NET MVC: Which mechanic returns ViewModel objects? - c #Background image of selected cell - objective-cmail sent with php mail () has an empty field - phpHow to redraw or refresh the screen - c #iphone sdk - iTunes connects, how to change device requirements? - objective-cHow is bootstrapper installed if prerequisites are installed? - installerPWC1406: Servlet.service() выбрал исключение java.io.IOException: недопустимый заголовок блока Когда клиент отправляет данные на сервер - javaBootstrapper (setup.exe) says “.NET 3.5 not found”, but running .msi directly installs the application without any problems - installerSQL COUNT Entries in Table 2 JOIN - sqlDatabase Design: Circular Links - database-designAll Articles