LUA和C#关于字符串中\0的处理
LUA中:
local s = "hello\0\0dddddddd"
print(s) --hello
C#中:
string s = "hello\0\0ddddddd"
console.writeline(s) //"hello\0\0ddddddd"
---------------------------------------------------------------------------------------------------
总结:C#无视字符串中的\0,并不以它会结束符。LUA则与C,C++一样以\0作为字符串结束符