Dictionary dict = new Dictionary();
//where MyClass has an override for ToString()
Now how do I get a
Use LINQ:
var list = dict.Select(k =>
new KeyValuePair<string,string>(k.Key, k.Value.ToString()))
.ToList();
Not tested/compiled, but something like that should work:
dict.Select(kvp => new KeyValuePair<string, string>(kvp.Key, kvp.Value.ToString())).ToList()
if the syntax is not 100% spot on, I hope you got the idea.