Last active
May 25, 2019 09:49
-
-
Save alistairjevans/537163d8e44965227a153c77e841df9e to your computer and use it in GitHub Desktop.
Array KVP - steady improvement
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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