Project
ReSharper
Priority
Normal
Type
Feature
Fix versions
Mirabile Futurum
State
Open
Assignee
Sergey Shkredov
Subsystem
Refactorings
Affected versions
No Affected versions
Fixed in build
No Fixed in build
  • Created by   Andrew Serebryansky
    5 years ago (06 Aug 2006 18:51)
  • Updated by   Sergey Shkredov
    2 years ago (15 Feb 2010 21:38)
  • Jira: RSRP-26649
    (history, comments)
 
RSRP-26649 "Extract class from parameters" can reuse an existing class
2
Issue is visible to: All Users
  The issue is visible to the selected user group only
I had a situation recently when I had two methods, not implementing the same member of an interface, which had the same parameter list. Now, I didn't expect that doing an "Extract Class..." would update the second method, and in fact, it did not.

However, when I did the "Extract Class..." on the second method, I wanted to be able to use the class created by the first "Extract Class...". There was no option to do this.

I suggest that such an option be created. If an exactly-appropriate class already exists, permit it to be used.

If there is only a _similar_ class, then I don't know _what_ you should do! For instance, if method 1 has parameters a-f, and method 2 has parameters a-h, it would be _nice_ if you could first create one class with a-f, then, on the second method, add g and h.
Comments (0)
 
History
 
Linked Issues (?)
 
TeamCity Changes (0)
 
Issue has no comments