The latest version of C# as of writing is C# 11. It was released in November 2022. C# 11 is a major release with a number of new features, including:
Records - A new data type that is essentially a struct with properties that are automatically implemented as properties and initializers.
Interpolated strings - A new way to format strings that makes it easier to insert expressions and variables into strings.
Pattern matching - A new feature that allows you to match patterns against values.
Asynchronous streams - A new way to work with streams that makes it easier to write asynchronous code.
A number of other improvements and bug fixes
C# 11 is a significant update to the language and is a good choice for new projects. If you are currently using an older version of C#, you should consider upgrading to C# 11.
Here are some of the key features of C# 11:
Records: Records are a new data type that are essentially structs with properties that are automatically implemented as properties and initializers. This makes it easier to create and work with data structures.
Interpolated strings: Interpolated strings are a new way to format strings that makes it easier to insert expressions and variables into strings. This can be useful for creating dynamic strings or for formatting strings with complex values.
Pattern matching: Pattern matching is a new feature that allows you to match patterns against values. This can be useful for a variety of tasks, such as filtering data or validating input.
Asynchronous streams: Asynchronous streams are a new way to work with streams that makes it easier to write asynchronous code. This can be useful for tasks that require long-running operations, such as reading or writing files.
C# 11 is a powerful language with a wide range of features. It is a good choice for a variety of development tasks, from web development to game development.
Markdown for AI
A clean, structured version of this page for AI assistants and LLMs.
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.
The latest version of C# as of writing is C# 11. It was released in November 2022. C# 11 is a major release with a number of new features, including:
C# 11 is a significant update to the language and is a good choice for new projects. If you are currently using an older version of C#, you should consider upgrading to C# 11.
Here are some of the key features of C# 11:
C# 11 is a powerful language with a wide range of features. It is a good choice for a variety of development tasks, from web development to game development.