|
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
|
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.
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.
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