Skip to content

Instantly share code, notes, and snippets.



Last active May 25, 2019
What would you like to do?
Old painful list of kvp
void SomeMethod(List<KeyValuePair<string, string>> pairs)
// Use the values
void Caller() {
// Yuck!
SomeMethod(new List<KeyValuePair<string, string>>
new KeyValuePair<string, string>("key1", "val1"),
new KeyValuePair<string, string>("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.