Search code examples
c#delegateslambdaanonymous-functionedit-and-continue

How do I find delegates, anonymous methods and lambda expressions in my code?


I like Edit-and-Continue very much, so much that I want to find all kinds of things that prevent it from working and move them away into separate methods, change to regular methods or something.

Problem is I can't easily locate them in my code.

Is there some functionality in Visual Studio that allows to browse all those things, or should I just use search with wildcards, or something else completely?


Solution

  • To lambdas, find (ctrl+f) all => in your code. To delegates, search for all delegate, Func, Action, Predicate.