đź’ˇ C# 13 Drops With Param Collections and Cool New Features
C# 13 has arrived with a host of new features, including param collections for flexible function parameters and a new escape sequence for the ESCAPE character.
C# 13 was released at the end of previous month. Let’s look into it. What’s important it already is supported on .NET 9.
This article was brought to you thanks to 18 thousand followers on Medium
The new release contains params collections, meaning there are more types you can use for function params. There’s a new type for thread synchronization called System. Threading.Lock, a new escape sequence:
You can use
\e
as a character literal escape sequence for theESCAPE
character, UnicodeU+001B
. Previously, you used\u001b
or\x1b
. Using\x1b
wasn't recommended because if the next characters following1b
were valid hexadecimal digits, those characters became part of the escape sequence.
The compiler also is more performant when handling method groups, that is overloads with the same name.
If you like the article follow me and subscribe for more!
My favorite is however the extension for the implicit “from the end” operator. So far…