C#中String如何判断是否为空

来源:互联网 发布:淘宝违禁品怎么防排查 编辑:程序博客网 时间:2024/06/17 00:23
string str = ""; str = "我是谁?";str = "";string str = "";if (!string.IsNullOrEmpty(str)){    // 代码片段}

0 0