How to correctly represent a whitespace character

后端 未结 6 1396
醉酒成梦
醉酒成梦 2020-12-15 16:31

I wanted to know how to represent a whitespace character in C#. I found the empty string representation string.Empty. Is there anything like that that represent

6条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-15 16:57

    You can always use Unicode character, for me personally this is the most clear solution:

    var space = "\u0020"
    

提交回复
热议问题