如何为包括QUOT;在一个字符串vb.net在一、字符串、何为、net

2023-09-02 21:39:07 作者:半醉半醒之间╮

我如何包括字符的字符串。

How do I include the " character in a string.

例如说=约翰说

推荐答案

还有一组控制字符可供选择:

There are also a set of Control Characters available:

尝试

Dim s as String = "John said " & ControlChars.Quote & "Hi" & ControlChars.Quote

我觉得这更具有可读性比堆叠在一起的多个报价。

I find this much more readable than multiple quotes stacked together.