From past few years I have been keeping a close watch on ECMA scripts and seems C# is running neck to neck in importing features of ES-6
I have explained about Tuples in older Blog article here
C# 7.1 introduces a small feature enhancement to Tuple de-structuring.
To run below sample you need to install System.ValueTuple Nuget package
style="display:block; text-align:center;"
data-ad-format="fluid"
data-ad-layout="in-article"
data-ad-client="ca-pub-5021110436373536"
data-ad-slot="9215486331">
private void btnTupleEnhancement_Click(object sender, EventArgs e) { //Older version before C# 7.1 var x = 20; var y = 10; var point = (x: x, y: y); //New Version C# 7.1 var point2 = (x, y); // Tuple element names are inferred from variables passed Console.WriteLine("Tuple element values are ", point2.x, point2.y); }
All code samples are available at my GitHub profile
I am a corporate trainer and solution architect and have a great team of software professionals. Please contact in case you need our services by sending email to contact@techprocompsoft.com. Here is our company website .