Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 C# 中,如果你有一个字符串,例如“The good\bad”,你会得到一个错误,因为 '\b' 不是一个正确的字符。因此,您可以改为 @"The good\bad",这将允许您打印反斜杠。
XML 是否有等效的技术,这样您就不需要输入特殊的转义字符,例如 &