O'Reilly logo

Exploring Advanced Features in C#: Enhance Your Code and Productivity by Dirk Strauss

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

© 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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required