阅读背景:

如何根据创建的子类的类型过滤基类中的对象集合?

来源:互联网 

I wrote this example to help explain. As you can see I have an object hierarchy. I'd like to modify the GetFeatures() function to only return the features added by constructor of object type I instantiated. For example, BasicModel.GetFeatures(new LuxuryModel()) should only return the features "Leather Seats" and "Sunroof". I don't mind using reflection if I have to.I wrote this example to help explain. As you ca




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: