Created
May 5, 2018 21:48
-
-
Save christiannagel/6b7b86d1e6ba78df37efdc2e2716a5d6 to your computer and use it in GitHub Desktop.
Inferred tuple names
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
// C# 7.0 | |
var t1 = (FirstName: racer.FirstName, Wins: racer.Wins); | |
int wins = t1.Wins; | |
// C# 7.1 | |
var t1 = (racer.FirstName, racer.Wins); | |
int wins = t1.Wins; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment