双引号可以像这样转义:
string test = @"He said to me, ""Hello World"". How are you?";
但这涉及"到字符串添加字符.是否有C#函数或其他方法来转义双引号,以便不需要更改字符串?
"
c# string double-quotes
c# ×1
double-quotes ×1
string ×1