» tagged pages
» logout
technology
Return to dzone.com: tech links

.NET Synchronised Dictionary

Tags Applied to this Entry

1 person has tagged this page:
In .NET 2.0 and above the SyncRoot was removed from the Dictionary and Hastable classes which meant you can't create thread-safe versions of these anymore. So here I provide a simple implementation of a generic synchronised dictionary class that is thread-safe, this was developed in .NET 3.5 using the new Threading.ReaderWriterLockSlim class.
Username:
Password:
(or Cancel)