Microsoft unveils C# 11 list patterns, raw string literals
C# 11, the planned next generation of Microsoft’s object-oriented language for .NET software development, is beginning to take shape, with new capabilities including list patterns and raw string literals.Preview features for C# 11 can be found in Visual Studio 2022 17.1 and .NET SDK 6.0.200, and raw string literals in a preview of Visual Studio 2022 17.2. C# 11’s list patterns let developers match against lists and arrays. Developers can match elements and include a slice pattern that matches zero or more elements. With slice patterns, developers can discard or capture zero or more elements.To read this article in full, please click here
C# 11, the planned next generation of Microsoft’s object-oriented language for .NET software development, is beginning to take shape, with new capabilities including list patterns and raw string literals.
Preview features for C# 11 can be found in Visual Studio 2022 17.1 and .NET SDK 6.0.200, and raw string literals in a preview of Visual Studio 2022 17.2. C# 11’s list patterns let developers match against lists and arrays. Developers can match elements and include a slice pattern that matches zero or more elements. With slice patterns, developers can discard or capture zero or more elements.