Console.WriteLine("\0");

string s1 = "\0";
Console.WriteLine(s1.Length);
Console.WriteLine(s1);

string s2 = "";
Console.WriteLine(s2.Length);
Console.WriteLine(s2);

string s3 = "a\0b";
Console.WriteLine(s3.Length);
Console.WriteLine(s3);

It's really fun, Console.WriteLine("\0"); can make the Console mute.

原文地址:https://www.cnblogs.com/zhongzf/p/1718633.html