I have a strange situation. When I do a string verbatim like this:
string str = @"Hello
World"
The string is created with a "\r\n" so that it's "Hello \r\nWorld". I want it to be created with just the new line, no carriage return so that it's "\n" only.
Now, I realize I can do:
str = str.Replace("\r", "")
But the string is a const variable specifically because I don't want a whole lot of instantiations and manipulations for performance (no matter how small), etc
Anyone know how I could do this so that, I could write a many line text stored as a const string with no "\r" that still appears formatted and easy to read in code?