History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: RSRP-37281
Type: New Feature New Feature
Status: Open Open
Priority: Normal Normal
Assignee: Ilya Ryzhenkov
Reporter: Serge Baltic
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
ReSharper

"Extract Interface" Should Support Generating Properties for Public Fields of the Original Class

Created: 16 Mar 07 22:31   Updated: 23 Mar 07 02:07
Component/s: Refactorings
Fix Version/s: Future Versions
Security Level: Everybody (All jira users)

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown


 Description  « Hide
A common task in refactoring the legacy code is converting an all-public-fields class into a read-only interface plus a read-write implementation.

 All   Comments   Work Log   Change History      Sort Order:
Ilya Ryzhenkov - 22 Mar 07 14:55
I think you should first incapsulate fields.

Serge Baltic - 22 Mar 07 22:52
That's not too logical. Rather copypaste them to the interface and make look like props. But that's not like making life easier.

Ilya Ryzhenkov - 23 Mar 07 02:00
I mean encapsulate fields first - you may have usages of these fields. Then extract properties to interface.
Combining this into special-case single refactoring doesn't seem good.