C# 7.0 Will Offer Tuples and Pattern Matching
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.