Skip to content

Instantly share code, notes, and snippets.

@alistairjevans

alistairjevans/program.cs

Last active May 25, 2019
Embed
What would you like to do?
Array KVP - steady improvement
void SomeMethod(KeyValuePair<string, string>[] pairs)
{
}
void Caller()
{
// Ok, so I hate myself a little less
SomeMethod(new[]
{
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.