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#)-代码中,我只是将任何字符串中的 ' 替换为 '',这适用于普通字符串,但不适用于 RTF,对于适用于(普通和 RTF)两者的解决方案有什么建议吗?
谢谢弗洛里安
尝试这个:
text.Replace("\"", "\"\"");