Andrey Serebryansky
Comment actions Permalink

Hello Richard,

Change Signature refactoring doesn't support adding generic type parameters.
'Signature preview' looks fine because ReSharper just uses the current text
from the 'Name' box to construct the preview. Thank you!

Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
"Develop with pleasure!"

See the attached screenshot.

Is this possible, or am I missing something obvious? It seems to me
that the resulting signature (as seen in the signature preview) looks
good, so why the problem?

Original message URL:

Comment actions Permalink

Thanks for the response.

I guess I was confused because the "Change Signature" DOES support generic method parameters. As well, it will change the signature of a Generic Method, as long as you don't want to change the generic type parameter of that Method.

Are there any plans to support this?

It would be an nice workaround to provide a "Delegate Method" refactor that was available in the "Refactor This" menu for Methods - much like the option during the "Change Signature," only stand-alone.


Please sign in to leave a comment.