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