You can't just cast a generic dictionary with a different key data type. You
can however create the second dictionary, copy the original keys to an int[]
using the Keys.CopyTo method, go through them and populate the new
dictionary with the old data.
Stanimir Stoyanov | www.stoyanoff.info
"pierre.k" <petr.krebs@xxxxxx> wrote in message
news:91380878-51a9-42ac-88b5-66d61c6e802a@xxxxxx
> Hello,
> how can I do a cast like
> IDictionary<int, string> as IDictionary<object, string> ?
>
> Thanks in advance for your help,
> pierre.k


