I'd like to create an internal auto-property:
internal bool IP { get; protected internal set; }
I thought it would be possible to make the setter protected
or protected internal
- but I always get the error accessibility modifier must be more restrictive than the property. Isn't that the case? Private
does not help me, here.
EDIT:
The question is: How do I implement an auto-property with a internal getter and a protected setter?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…