C# 11.0 new features
Mar 12, 2023 |
Ian Griffiths |
14 |
Mar 12, 2023
C# 11.0 new features: raw string literals
Views: 17
C# 11.0 became available with .NET 7.0 in November 2022. It has made a few improvements for string literals. In this post, I'll show how the new raw string literals feature can significantly improve readability.
Problems with string literals
There are two problems that have long plagued string literals in C#:
Strings that include double quotes tend to be unreadable
Indentation looks messy in multiline strings
For...
more...