Created
February 10, 2015 16:14
-
-
Save ufcpp/716050f535ec35681a98 to your computer and use it in GitHub Desktop.
Tuple syntax in C# 7 (proposed)
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
public (int sum, int count) Tally(IEnumerable<int> values) { ... } | |
var t = Tally(myValues); | |
Console.WriteLine($"Sum: {t.sum}, count: {t.count}"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment