Skip to content

Instantly share code, notes, and snippets.

@sakapon
Last active September 2, 2020 01:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sakapon/8752a4c7d5c07e6c88d317197f36139e to your computer and use it in GitHub Desktop.
Save sakapon/8752a4c7d5c07e6c88d317197f36139e to your computer and use it in GitHub Desktop.
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