Re: Strong Typed Collections
- From: "farseer" <farseer@xxxxxxxxxxxxx>
- Date: 14 Oct 2005 12:31:42 -0700
ok...i see that i can use system.collections.generic namespace for
this. in my case, i want to use a key/value pair so IDictionary< int,
MyClass > is what i use. The problem is, how do i cast a hashtable to
this?
If that can't be done, how can i instantiate and add values to a
collection declared as IDictionary< int, MyCalss>.
Also, is there a way to declare a type or alias for "IDictionary<int,
MyClass>", so i don't have to type that declaration everytime i need to
declare a variable of that particular collection?
.
- Follow-Ups:
- Re: Strong Typed Collections
- From: Kevin Spencer
- Re: Strong Typed Collections
- Prev by Date: Application consumes close to 100% of CPU, how to profile and determine the cause
- Next by Date: Re: Application consumes close to 100% of CPU, how to profile and determine the cause
- Previous by thread: Application consumes close to 100% of CPU, how to profile and determine the cause
- Next by thread: Re: Strong Typed Collections
- Index(es):
Relevant Pages
|