您需要通过将它们加倍来逃脱它们(普通字符串字面量):
string str = @"""How to add doublequotes""";
或者使用普通的字符串文字,您可以使用
:对其进行转义:string str = ""How to add doublequotes"";

您需要通过将它们加倍来逃脱它们(普通字符串字面量):
string str = @"""How to add doublequotes""";
或者使用普通的字符串文字,您可以使用
:对其进行转义:string str = ""How to add doublequotes"";