Last active
September 2, 2020 01:28
-
-
Save sakapon/8752a4c7d5c07e6c88d317197f36139e to your computer and use it in GitHub Desktop.
OperatorsSample/Vector0Test.KeyValuePair_Deconstruct
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
[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