JohnIdlewood
JohnIdlewood

Reputation: 386

How to find all particular type object initilializations in code

When refactoring a good piece of code I ran into the problem: I have to find and check all places where new instances of a particular type of object are created. Whether it is: methods, constructors, 'new' keyword. I can't do it without checking all references to the class with CodeLens, but there are too many references!

Upvotes: 1

Views: 191

Answers (1)

JohnIdlewood
JohnIdlewood

Reputation: 386

Ok, thanks for the guys who commented this section the solution was found and it was trivial: create parameterless contstuctor - than you can navigate to all object creations using any constructor with CodeLens.

Upvotes: 1

Related Questions