欢迎各位兄弟 发布技术文章

这里的技术是共享的

You are here

判断对象是否为空 字符串为空 有大用 有大大用

对象为空

if  ( _engine == null ){


}

image.png


字符串为空

if (String.IsNullOrEmpty(assemblyName)){


}

image.png


判断列表序列是否为空

if(interfaceList == null || !interfaceList.Any()){


}


image.png

普通分类: