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