What's New in .NET 9 and C# 13
Introduction .NET 9 and C# 13 have been released some days ago , so it's time for my own resume of the new features. There are tons of improvements, quite a few related to performance, so, beware, if you want the whole thing, you should read the official documentation , these are just my personal choices! New Escape Sequence In previous C# versions, you probably have used \u001b or \x1b escape characters. Now, to prevent occasional typos, C# 13 has introduced \e as a character literal escape sequence for the Escape character . This allows this code: //old style, \u001b var redText = "\u001b[31mThis is red\u001b[0m"; Console.WriteLine(redText); //new style, with \e var boldText = "\e[1mThis is bold\e[0m"; Console.WriteLine(boldText); This feature is specified in https://github.com/dotnet/csharplang/issues/7400 . Overload Resolution Priority There is a new attribute, [OverloadResolutionPriority] , which can be used to control what overload is used preferabl...