我有需要包含引号的字符串变量。不出所料,将“”放入"a string like this"
其中将结束字符串然后创建一个新字符串。
例如:
writer.WriteLine("{"); //first line is ok
writer.WriteLine(" "profiles": { ");
// the word "profiles" not treated as just another part of the string
// but I need to write this text, quotes and all:
// "profiles": {
如何在字符串中添加引号?