NewsC# 7.0 Will Offer Tuples and Pattern Matching

C# 7.0 Will Offer Tuples and Pattern Matching content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More.

Microsoft has outlined the key features that will be included in the next version of its C# programming language, which will be known as C# 7.0. “Perhaps the biggest features are tuples, which make it easy to have multiple results, and pattern matching, which simplifies code that is conditional on the shape of data,” said Mads Torgersen, Microsoft program manager for C#.

Other changes include the ability to use underscores as digit separators in number literals, the introduction of binary literals and the ability to add expression bodies to accessors, constructors and finalizers.

Developers can try out some of these new features for C# by downloading Visual Studio 15 Preview 4, which debuted this week.

View article

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends & analysis

Latest Posts

Related Stories