首页 新闻 赞助 找找看

类整形为1的数量

0
悬赏园豆:10 [已关闭问题] 关闭于 2016-09-21 13:51
public class A
{
public B b { get; set; }
public int a1 { get; set; }
public int a2 { get; set; }
public decimal a3 { get; set; }
}

public class B
{
    public int b1 { get; set; }
    public  string desc { get; set; }
}

 

如何统计A的整形字段并且为1 的数量。

zhyinguang的主页 zhyinguang | 初学一级 | 园豆:38
提问于:2016-01-14 12:04
< >
分享
所有回答(2)
0

反射

jello chen | 园豆:7306 (大侠五级) | 2016-01-14 12:12

嵌套的子类属性呢?

支持(0) 反对(0) zhyinguang | 园豆:38 (初学一级) | 2016-01-14 12:19

@大光的幸福生活: 仍然可以反射啊

支持(0) 反对(0) jello chen | 园豆:7306 (大侠五级) | 2016-01-14 12:21
0

递归反射

刘宏玺 | 园豆:14020 (专家六级) | 2016-01-14 13:33
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册