Skip to content

Instantly share code, notes, and snippets.

@christiannagel
Created May 5, 2018 21:48
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 christiannagel/6b7b86d1e6ba78df37efdc2e2716a5d6 to your computer and use it in GitHub Desktop.
Save christiannagel/6b7b86d1e6ba78df37efdc2e2716a5d6 to your computer and use it in GitHub Desktop.
Inferred tuple names
// 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