要获得返回(兼容)特定类型或接口的方法列表的CQLINQ是什么?
发布于 2015-04-09 05:17:38
您可以从这样的查询中获得灵感:
let listOfT = ThirdParty.Types.WithFullName(
"System.Collections.Generic.IList<T>").Single()
let compatibleTypes = listOfT.TypesThatImplementMe.Concat(listOfT)
from m in Methods.Where(m => m.ReturnType != null && compatibleTypes.Contains(m.ReturnType))
select new { m, m.ReturnType }https://stackoverflow.com/questions/29505525
复制相似问题