In addition, you can read about C# 11: features for .NET 7.
- Home
- .NET code examples
- C# 11 features: Download samples
C# 11 features: Download samples
C# 11 has a release date of November 2022, and will be launched with .NET 7.
However, we are able to preview some of the C# 11 features that are included right now.
The features included in this code sample include:
- Required members
- Auto-default structs
- Raw string literals
- Generic attributes
- List patterns
Software
This is the software that will need to be installed onto your machine.
- Visual Studio 2022 17.3.0 above. It will work with the free community version.
- .NET 7 SDK preview 6 or above.
Get the application working
These are the steps to get the application working.
- Fill out the code example form. We will send you an email where you can download the code example.
You are now ready to go.
Open the project in Visual Studio
Open up RoundTheCode.CSharp11.sln
in Visual Studio 2022 Preview.
Look at the code, or run the console application to see it in action.
More information
Watch our video where we preview some of the C# 11 features.
Related code examples
.NET 7 code examples for ASP.NET Core
A preview of what's new for the .NET 7 release, including code examples of ASP.NET Core features to download.
Watch .NET tutorials
Subscribe to our YouTube channel