Have you tried C# 7.0? What is your favorite feature? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 21

Have you tried C# 7.0? What is your favorite feature?

Out variables, pattern matching, tuples, deconstruction, local functions, digit separators, binary literals, ref returns and locals… What is your favorite?

13th May 2017, 7:55 AM
Péter Gyöngyik
Péter Gyöngyik - avatar
2 Answers
+ 9
I just like the choices of data types available
13th May 2017, 7:58 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 6
Can't help, but these are so nice looking featues: - Deconstructor (a, b) = c; - Out var can be defined inside call Func(out bool success); - Param wildcard for 'out' GetCoord(out x, *); - Reference return! return ref result; - Throw expressions are cute :)) obj ?? throw new ArgumentException(); Getting more and more pretty, I just love coding in C#..!
13th May 2017, 11:07 AM
Magyar Dávid
Magyar Dávid - avatar