Hashtables have a syncroot property but generic dictionaries don\'t. If I have code that does this:
lock (hashtable.Syncroot) { .... }
How
var dictionary = new Dictionary(); lock(((ICollection) dictionary).SyncRoot) { // ... }