Provide KeyValuePair.Create static factory method (dotnet/coreclr#5755)
authorDaniel Cazzulino <daniel@cazzulino.com>
Wed, 12 Oct 2016 17:37:46 +0000 (19:37 +0200)
committerJan Kotas <jkotas@microsoft.com>
Wed, 12 Oct 2016 17:37:46 +0000 (10:37 -0700)
commit57ed58b24335cb5db30ef3719ecd7d8b3bc80216
tree8ca8c99c9454c7d175818c0dd1b3ac69d5c15fb0
parent5afc129ee802f3b82594fb69ec8243045c8792a8
Provide KeyValuePair.Create static factory method (dotnet/coreclr#5755)

Just like Tuple.Create cuts down the noise and annoyance
of having to specify all the Ts when you already have typed
values to provide, a similarly designed KeyValuePair.Create
factory method would make code that creates those pairs
(i.e. public APIs that expose IEnumerable{KeyValuePair}
significantly more concise and readable.

Fixes dotnet/corefxdotnet/coreclr#2127

Commit migrated from https://github.com/dotnet/coreclr/commit/af076482b26baf02f291416e606ad6becbf8d28b
src/coreclr/src/mscorlib/model.xml
src/coreclr/src/mscorlib/src/System/Collections/Generic/KeyValuePair.cs