Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to search functions by parameter type or return type in visual studio?

For example, I want to find all functions in the .net class library requiring a Stream as a parameter, and all functions returning a Stream. Is there any ways to achieve this?

like image 816
user17 Avatar asked Oct 27 '14 01:10

user17


1 Answers

I was looking for the same thing and haven't found a search-by-return-type in Visual Studio.

My code is in a git repo, so I was able to find what I was looking for with a grep similar to:

$ git grep "public IEnumerable<String> " (or just $ git grep " IEnumerable<String> ").. the leading and trailing spaces can filter out many results.

like image 77
MrDrews Avatar answered Nov 05 '22 10:11

MrDrews