Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在搞乱 CQLinq 并试图编写一个查询来查找我的项目中用作第 3 方泛型方法的泛型类型参数的类型。
更具体地说,我们使用了一个名为 AutoMapper 的第三方库,它有一个静态泛型方法,Mapper.CreateMap<T1, T2>(). 是否可以编写查询来查找我的代码中的哪些类型用作 CreateMap 方法的参数?
Mapper.CreateMap<T1, T2>()
谢谢。