Important take into account that we need to use framework 4.6.2 in order to implement tuples and it has a feature for 7.1.
7.0:
int count = 5;
string label = "Colors used in the map";
var pair = (count: count, label: label);
7.1 (new feature default names):
int count = 5;
string label = "Colors used in the map";
var pair = (count, label); // element names are "count" and "label"
Important take into account that we need to use framework 4.6.2 in order to implement tuples and it has a feature for 7.1.
7.0:
int count = 5;
string label = "Colors used in the map";
var pair = (count: count, label: label);
7.1 (new feature default names):
int count = 5;
string label = "Colors used in the map";
var pair = (count, label); // element names are "count" and "label"
I love how C# is embracing good parts from other languages.
I use the 7.1 syntax in Javascript quite much and been tripping me much in C#.