关于空字符串

运行弹出提示“yes!”

定为空字符串的几种写法,按照性能从高到低的顺序是:


s.Length == 0 优于 s == string.Empty 优于 s == ""

原文地址:https://www.cnblogs.com/johan/p/1947994.html