How do I escape ” in verbatim string? [duplicate]
Use a double quote: string s2 = @”This is \t a “”verbatim”” string”; With C# 11 you could also use a raw string literal, for example: string longMessage = “”” This is a long message. It has several lines. Some are indented more than others. Some should start at the first column. Some have “quoted … Read more