c#中如何判断数组为空

如题所述

if(array==null||array.Length==0)
{
//这个数组为空
}

温馨提示:答案为网友推荐,仅供参考
相似回答