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
At the .NET level, there are two similar but distinct access levels:
"protected internal" in C# means FamilyOrAssembly; there's no modifier for FamilyAndAssembly.
So, your protected internal setter is less restrictive than the internal overall property. What you could do is:
protected internal bool IP { internal get; set; }
But then your setter is less restricted than your getter, which is odd...
Another (somewhat equivalent) alternative is:
internal bool IP { get; set; }
protected void SetIP(bool ip)
{
this.IP = ip;
}