C# Version 7.0 | |
Released March, 2017 | |
C# version 7.0 was released with Visual Studio 2017. This version has some evolutionary and cool stuff in the vein of C# 6.0. Here are some of the new features: | |
Out variables | |
Tuples and deconstruction | |
Pattern matching | |
Local functions | |
Expanded expression bodied members | |
Ref locals | |
Ref returns | |
Other features included: | |
Discards | |
Binary Literals and Digit Separators | |
Throw expressions | |
All of these features offer new capabilities for developers and the opportunity to write cleaner code than ever. A highlight is condensing the declaration of variables to use with the out keyword and by allowing multiple return values via tuple. .NET Core now targets any operating system and has its eyes firmly on the cloud and on portability. These new capabilities certainly occupy the language designers' thoughts and time, in addition to coming up with new features. |