Let me just say real quick how much i love the new raw string literals in #csharp 11.
Just being able to write the HtmlString like this and it not be a visual mess is fantastic.
Let me just say real quick how much i love the new raw string literals in #csharp 11.
Just being able to write the HtmlString like this and it not be a visual mess is fantastic.
@gsferreira I have an immediate use for it which is probably why I'm excited about it.
I have a library that parses a binary formatted file spec but also want to include a way of creating the file spec in code and writing it out.
There are certain classes that can have like 10 different properties that will never be null or an empty string.
So without required, the init only properties have to be in the constructor, making it a constructor with 10 parameters, and it just looks bad
@aristurlte I could not agree more, this feature is awesome! ✨
I am doing a lot of code generation (of C# code) in my current project, and raw string literals made this effortless & very clean! 😺
The fact that some IDEs like #JetBrainsRider even offer some syntax highlighting within the raw string literals makes it even better. 🥰