如何在解决方案中找到所有扩展方法? [英] How I can find all extension methods in solution?

查看:71
本文介绍了如何在解决方案中找到所有扩展方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在解决方案中找到所有扩展方法?

How I can find all extension methods in solution ?

推荐答案

如果执行此操作,我将在所有文件中搜索字符串(this" -搜索字符串可能会因格式选项而异.

If I were doing it I would search all files for the string "( this " -- your search string may differ based on your formatting options.

编辑:经过一些实验,以下内容似乎可以使用查找文件"(Ctrl-Shift-F)高精度地为我工作

EDIT: After a little bit of experimentation, the following seems to work for me with high precision using "Find in Files" (Ctrl-Shift-F)

  • 搜索字符串:"\( this [A-Za-z]"(当然要加上引号)
  • 匹配情况:未选中
  • 匹配整个单词:未选中
  • 使用:正则表达式
  • 查看以下文件类型:"* .cs"
  • Search string: "\( this [A-Za-z]" (minus quotes, of course)
  • Match case: unchecked
  • Match whole word: unchecked
  • Use: Regular Expressions
  • Look at these file types: "*.cs"

这篇关于如何在解决方案中找到所有扩展方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆