+ 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?
2 Respostas
+ 9
I just like the choices of data types available
+ 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#..!