会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
首页
管理
2021年5月26日
C# 判断对象里所有属性的值是否存在空值
摘要: 反射+泛型方法 public static bool ObjectIsNullOrEmpty<T>(T t) { foreach (var item in t.GetType().GetProperties()) { if (item.GetValue(t) == null) { return tr
阅读全文
posted @ 2021-05-26 10:34 超级驼鹿
阅读(969)
评论(0)
推荐(0)
编辑
/*