Methods marked "is never used", but is actually used
I'm using ReSharper 2024.3.20250120.12151 on VisualStudio 2019 to find Public functions which are not used (there are many; they never should have been Public to begin with, but they are, so…I have to play the hand I'm dealt).
It's giving me a bunch of methods it says “is never used”, but when I go there, VS says it is, in fact, used (there is at least one place in the code that calls it).
Now I'm wondering if ReSharper is actually going to help me with this task. The only thing I've noticed with the first few of these I've looked at is that they are extension methods (these happen to extend the Bitmap class). Is that what's confusing ReSharper? Is there any way to make it handle extension methods correctly?
TIA,
--mkj
Please sign in to leave a comment.
Hello,
Is there any chance you could share a code sample in which the similar behavior is reproduced? In general, ReSharper should handle extension methods correctly.
Thank you.