© Dirk Strauss 2019
Dirk StraussExploring Advanced Features in C#https://doi.org/10.1007/978-1-4842-4856-0_1

1. C# 7 in Focus

Dirk Strauss1 
(1)
Uitenhage, South Africa
 

C# 7 was released in March 2017 as part of the release of Visual Studio 2017. As mentioned on the .NET Blog by Mads Torgersen, C# 7 was focused on the consumption of data, simplifying code and improving performance. The biggest features to come out of C# 7 were tuples and pattern matching.

With tuples, developers can return more than one value from functions. Traditionally C# has allowed developers to return multiple values from a single function by building a structure and returning an instance of the structure.

You could also make use of out parameters which use the out keyword for ...

Get Exploring Advanced Features in C#: Enhance Your Code and Productivity now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.