Reporter |
|
---|---|
Created | May 19, 2017 1:58:22 AM |
Updated | Apr 6, 2018 12:45:29 PM |
Resolved | Apr 6, 2018 12:45:28 PM |
Subsystem | Refactorings |
Assignee | Alisa Afonina (alisa.afonina) |
Priority | Normal |
State | Fixed |
Type | Bug |
Fix version | 2018.1 |
Affected versions | 2016.1.2 |
Fixed In Version ReSharper | Undefined |
VsVersion | VS 2015 RTM |
Summary
When I Refactor > Change Signature on an extension method, I have no ability to keep the 'this' keyword.

Usages get broken, as you can see here, the type I was extending is now gone.

Expected Results
- A 'this' modifier is available in the parameter row of the Change Signature window.
- Refactoring does not result in missing parameter in calling code.
- Calling code retains the extension method style invocation syntax.
Actual Results
- No ability to retain 'this' keyword
- Calling code syntax takes the form of the standard method invocation, accessing it through the surrounding static class.
- Calling code removes parameter you are calling extension method on.