Skip to content

Instantly share code, notes, and snippets.



Last active May 25, 2019
What would you like to do?
Still painful, but getting better
// Forgive me for this function name
KeyValuePair<string, string> KVP(string key, string val)
return new KeyValuePair<string, string>(key, val);
void Caller()
// Still pretty bad
SomeMethod(new List<KeyValuePair<string, string>> {
KVP("key1", "val1"),
KVP("key2", "val2")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.