System.Collections.Generic.SynchronizedKeyedCollection<k,t></k,t>
-
With .NET Framework 3.0 MS shipped some extensions to System.Collections.Generic namespace. One of it is the generic class SynchronizedKeyedCollection. First seen I thought, wow I have ever wanted a thread-safe dictionary. So I tried to use that class in current project. But: What the hell. Those framework designer were not able to have same interface to that class like dictionary has. The method Add() only takes a . To assign a key you have to call ChangeItemKey method. There is no method such TryGetValue to check if an object with requested key exists. And so on. Did I miss something on understanding that class or is there a deeper reason changing the "interface-pattern" of the Dictionary class? Have you ever dealed with that class? I didn't find anything in google about this....