How to get a null terminated string from a C# string?

前端 未结 4 872
耶瑟儿~
耶瑟儿~ 2020-12-03 13:49
  • I am communicating with a server who needs null terminated string
  • How can I do this smartly in C#?
4条回答
  •  温柔的废话
    2020-12-03 14:51

    You add a null character to the end of the string. .NET strings can contain null characters.

提交回复
热议问题