I have a StringBuilder object and wanted to used its Append() method to add this whole string to it:

so I used “@” and copy pasted that whole string like this, but it gives a lot of errors such as “; expected “, “Invalid Expression ‘<‘” , etc
myString.Append(@"COPY-PASTED-THAT_WHOLE-STRING");
What is the correct way of adding this string to my string builder object?
Thank you.
Double-quotes (
") inside the string you want to paste need to be escaped by being replaced with two consecutive double-quotes, as in"". Here’s a trick to use:") with two double quotes ("")@"…"in your code/text editorFrom C# docs: