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

Key: RSRP-14122
Type: New Feature New Feature
Status: Open Open
Priority: Normal Normal
Assignee: Ilya Ryzhenkov
Reporter: Gerrod Thomas
Votes: 0
Watchers: 0
Operations

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

Generate Read-Write property accessibility

Created: 05 Aug 06 20:22   Updated: 13 Mar 08 22:36
Component/s: Code Insight
Fix Version/s: Future Versions
Security Level: Everybody (All jira users)

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

Build: 211
Old URL: http://www.intellij.net/tracker/resharper/viewSCR?publicId=14122


 Description  « Hide
In .NET v2 it is legal to do this:
private int objectId;

public int ObjectId {
    get { return objectId; }
    internal set { objectId = value; }
}
Provided the additional access modifier on the get or the set is weaker than the overall access modifier, this is fine.

It would be nice if the Generate Read-Write Property popup allowed the user to specify the access modifier they want for both the get AND the set, and then ReSharper worked out which one should go where.



 All   Comments   Work Log   Change History      Sort Order:
Gerrod Thomas - 08 Aug 06 15:09
Re: #14122- Generate Read-Write property accessibility
I think there are a lot of people out there that don't yet realise this syntax is legal.

As long as the implementation of such a feature doesn't change the expected/default behavior of "Generate Read-Write property" (i.e. simply pressing "OK" will generate the property with the same accessibility for get and set), then I think it would be very useful.


Gabriel Lozano-Morán - 08 Aug 06 15:09
Re: #14122- Generate Read-Write property accessibility
This would be a nice addition to ReSharper. I vote for "yes".

Gabriel Lozano-Mor?n
MCSD .NET
Real Software
http://www.realdn.net
http://www.realsoftware.be