会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
littlewrong
记录知识的点滴 ————不积跬步无以至千里,不积小流无以成江海
博客园
首页
新随笔
联系
订阅
管理
2017年1月17日
通过反射获取所有继承了某一接口的类
摘要: 方法一: var types = AppDomain.CurrentDomain.GetAssemblies() .SelectMany(a => a.GetTypes().Where(t => t.GetInterfaces().Contains(typeof(ISecurity)))) .ToA
阅读全文
posted @ 2017-01-17 21:32 littlewrong
阅读(3455)
评论(0)
推荐(1)