C#判断数组是否为空
string[] array=new[] { "1", "2", "3", "4", "5" };
//包含空字符串或NULL返回True
bool any = array.Any(x => string.IsNullOrEmpty(x));
- 上一篇 »php如何判断数组是不是为空?
- 下一篇 »php如何判断数组是不是为空?
string[] array=new[] { "1", "2", "3", "4", "5" };
//包含空字符串或NULL返回True
bool any = array.Any(x => string.IsNullOrEmpty(x));