N
NvrBst
I've been playing around with a bunch of synchronization classes latly
but I can't seem to get the following one to work? When I do
"SynchronizedKeyedCollection<int,int> myDic = new
SynchronizedKeyedCollection<int,int>();" I get the error:
Cannot create an instance of the abstract class or interface
'System.Collections.Generic.SynchronizedKeyedCollection<int,int>'
There is also no intellisence for completing the "new ..." keyword
like other classes. Could someone give me a quick example on how to
use this class? (I see on MSDN it has a constructor, shouldn't I be
able to use it like I would a Dictionary<T,K>?)
NB
Note: I have .NET 3.5, and using VS2008 (Team System).
System.ServiceModel is referenced and IntelliSence is highlighting the
class like it can see it. I'm also able to use the
"SynchronizedCollection<int>" like I do a List<T>
but I can't seem to get the following one to work? When I do
"SynchronizedKeyedCollection<int,int> myDic = new
SynchronizedKeyedCollection<int,int>();" I get the error:
Cannot create an instance of the abstract class or interface
'System.Collections.Generic.SynchronizedKeyedCollection<int,int>'
There is also no intellisence for completing the "new ..." keyword
like other classes. Could someone give me a quick example on how to
use this class? (I see on MSDN it has a constructor, shouldn't I be
able to use it like I would a Dictionary<T,K>?)
NB
Note: I have .NET 3.5, and using VS2008 (Team System).
System.ServiceModel is referenced and IntelliSence is highlighting the
class like it can see it. I'm also able to use the
"SynchronizedCollection<int>" like I do a List<T>