0

Ok, what am I doing wrong here?

I read this answer or this (illustrated even) and it doesn't work exactly how I want. I mean, the bottom line I click on sample method -> "Find usage" and got "... were not found". Then I go to my second link, check everything exactly as it is (I'm using Resharper btw) on the pictures and got some unused stuff, but many many unused methods are not shown.

Could somebody explain me why? What do I wrong?

Will it found also unused static methods in static classes?

Community
  • 1
  • 1
Marshall
  • 1,195
  • 6
  • 30
  • 47
  • 2
    Right-click on one of your methods that you think is unused but resharper doesn't, select Find All References from the menu. Do you still believe the method is unused? – Robert Harvey Oct 23 '14 at 22:01
  • Find All References can be broken, so also do a find all on the function name (on the solution) it will tell you if anybody calls it pretty quick. – BradleyDotNET Oct 23 '14 at 22:01
  • I advice you to not remove any code, you can find valuable code snippets in the future and also the whole method/class can be reused. I never seen Find All Referecnes to be broken, if this somehow happen just clean and Rebuild solution and try again ! – mybirthname Oct 23 '14 at 22:06
  • I think there is no "Find All References" after I installed resharper.. Look here: http://stackoverflow.com/questions/587555/how-to-turn-off-resharpers-find-all-usages Isn't it the same ? – Marshall Oct 23 '14 at 22:11

0 Answers0