How to get list of extension methods in a solution or project in VS2013?

穿精又带淫゛_ 提交于 2019-12-13 02:02:16

问题


How does one get the list of extension methods in a solution/project?

Is there anything in VS 2013 by default to achieve that like class view or using ndepend cqlinq?


回答1:


You can just write the code query:

from m in Application.Methods
where m.IsExtensionMethod
select m

For a code query that group extension method sby types extended see: Getting list of types that are effected by an extension method in cqlinq



来源:https://stackoverflow.com/questions/29481538/how-to-get-list-of-extension-methods-in-a-solution-or-project-in-vs2013

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!