Converting a Dictionary from one type to another

Viewed 9384

How can I convert a Dictionary(Of TypeA, TypeB) to a Dictionary(Of TypeC, TypeD)? There is an implicit cast when converting (let's say the second dictionary is String, String), so this process should be automatic, right? I just can't figure out an elegant way to do this.

The language is VB.NET, but I can read and convert C# if you're more comfortable with that.

2 Answers
Related