C#
字符串为空
数组为空
string[] arrStrings = {"0", "1", "2", "3", "4", "5", "......"};
//包含空字符串或NULL返回True
bool hasNullOrEmptyElement = Array.Exists(arrStrings, string.IsNullOrEmpty);
字符串为空
数组为空
string[] arrStrings = {"0", "1", "2", "3", "4", "5", "......"};
//包含空字符串或NULL返回True
bool hasNullOrEmptyElement = Array.Exists(arrStrings, string.IsNullOrEmpty);
本文标题:判断为空
本文链接:https://www.haomeiwen.com/subject/zykwattx.html
网友评论