Disable some Resharper warnings?

I've noticed that Resharper flags unused method parameters with a blue
squiggly line, which will show the litte status box in the lower right as
either yellow or red. Since unused params tend to happen a lot in event
handlers, is there a way to disable this behavior (unused parameter
warnings) so my code looks nice and clean again? :)

Jason

1 comment
Comment actions Permalink

Jason,

the situation with unused parameters is a bit complicated. First,
ReSharper should not flag unused parameters in public methods
(because a public method can implement an interface method,
and hence it should match the signature of the interface method).
Second, a private method can still be used for delegate construction (just
like
your event handlers), so its signature should match that of the delegate.
This check is currently not implemented, but will be implemented soon.
This should solve your problem.

"Jason" <zod269-spamtrap@yahoo.com> wrote in message
news:opr4xkclwu77oein@localhost...
I've noticed that Resharper flags unused method parameters with a blue
squiggly line, which will show the litte status box in the lower right as
either yellow or red. Since unused params tend to happen a lot in event
handlers, is there a way to disable this behavior (unused parameter
warnings) so my code looks nice and clean again? :)

Jason


0

Please sign in to leave a comment.