I think this should work for you.
Dictionary<string, int> dictionary = new
Dictionary<string, int>();
dictionary.Add("foo", 2);
dictionary.Add("bar", 1);
IList<int> foo = new
List<int>(dictionary.Values);
I believe this is also the wrong list to be posting such
questions to ...
the Microsoft newsgroups would probably be a better
alternative for you.
Cheers,
Greg Young
On 6/3/06, Robert Rolls <implatform netspace.net.au> wrote:
>
> I'd like to convert the Dictionary Values to a
List<> anybody know any
> magic
> .net classes/code?
>
>
>
> Rob.
>
>
> ===================================
> This list is hosted by DevelopMentor(r) http://www.develop.com
>
> View archives and manage your subscription(s) at
> http://discuss.develop.com
>
--
If knowledge can create problems, it is not through
ignorance that we can
solve them.
Isaac Asimov
===================================
This list is hosted by DevelopMentorŪ http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
|