Skip to content

Instantly share code, notes, and snippets.

@csharpforevermore
Created February 13, 2014 05:16
Show Gist options
  • Save csharpforevermore/8970121 to your computer and use it in GitHub Desktop.
Save csharpforevermore/8970121 to your computer and use it in GitHub Desktop.
Dictionary<string, string> to a single string with commas separating the keyvaluepairs
string s = string.Join(",", myDict.Select(x => x.Key + "=" + x.Value).ToArray());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment