如何判断一个字符串数组是否为空

2025-05-14 03:41:25
推荐回答(1个)
回答1:

string[] ss =....
if(ss==null)
空指针,
if(String.IsNullOrEmpty(ss[0]))
第0个元素为空