1

When a method is declared in an interface and implemented in a class, but is not called anywhere in the project, Resharper does not detect it as an unused member.

I have to clean a project and delete these kind of members, how do I do this?

Thanks

Jack
  • 886
  • 7
  • 27
  • you should give the minimum code to reproduce the error along with your question. – penguin2048 Apr 20 '18 at 15:31
  • Hello, there is no error, this is a question about how Resharper function – Brahim AKEJDOUT Apr 20 '18 at 15:36
  • Is SWEA (https://www.jetbrains.com/help/resharper/Code_Analysis__Solution-Wide_Analysis.html) enabled for the solution? If no, enable it and in case a method is not used anywhere, ReSharper will show you a suggestion about that for the method in the interface. – Alexander Kurakin Apr 28 '18 at 11:15
  • Thank you, I have activated that option and Resharper list All the members that are not referenced – Brahim AKEJDOUT Apr 30 '18 at 12:46

1 Answers1

1

Thank you, I have activated the Option 'Analyze errors in whole solution' .and Resharper list All the members that are not referenced.

Resharper - turn off solution wide analysis