Project
ReSharper
Priority
Normal
Type
Feature
Fix versions
Mirabile Futurum
State
Open
Assignee
Ilya Ryzhenkov
Subsystem
Generate
Affected versions
No Affected versions
Fixed in build
No Fixed in build
  • Created by   Gerrod Thomas
    5 years ago (05 Aug 2006 20:22)
  • Updated by   Sergey Shkredov
    4 weeks ago (26 Apr 2012 16:29)
  • Jira: RSRP-14122
    (history, comments)
 
RSRP-14122 Generate Read-Write property accessibility
0
Issue is visible to: All Users
  The issue is visible to the selected user group only
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.
Comments (2)
 
History
 
Linked Issues (?)
 
TeamCity Changes (0)
 
Gerrod Thomas
  Gerrod Thomas
08 Aug 2006 15:09
5 years ago
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
  Gabriel Lozano-Morán
08 Aug 2006 15:09
5 years ago
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