Skip to content

Instantly share code, notes, and snippets.

@sakapon

sakapon/Vector0Test.cs

Last active Sep 2, 2020
Embed
What would you like to do?
OperatorsSample/Vector0Test.KeyValuePair_Deconstruct
[TestMethod]
public void KeyValuePair_Deconstruct()
{
var d = Enumerable.Range(1, 100).ToDictionary(i => i, i => i / 2.0);
foreach (var (i, value) in d)
Console.WriteLine($"{i} {value}");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment