I found the default implemtation of ToString in the dictionary is not what I want. I would like to have {key=value, ***}.
{key=value, ***}
Any handy way to get it?
Maybe:
string.Join ( ",", someDictionary.Select(pair => string.Format("{0}={1}", pair.Key.ToString(), pair.Value.ToString())).ToArray() );
First you iterate each key-value pair and format it as you'd like to see as string, and later convert to array and join into a single string.