ERROR: the accessibility modifier of the set accessor must be more restrictive than the property or indexer
<p>i'm having a bit of confusion with property accessors.</p>

<p>I'd like to have an internal property with its set accessor only accessible to derived classes.</p>

<p>something like this</p>

<pre><code>internal [internalClass] MyProperty
{
get {return _prop;}
protected set {_prop = value;}
}
</code></pre>

<p>when i do this the compiler complains. </p>

<p>MSDN, when discussing this particular error suggests changing the <code>set</code> access modifier to <code>private</code> </p>

<p>which is not where i want this to go. </p>

<p>it looks like <code>Protected Internal</code> should be an option here however using this modifier gives the same error</p>

<p>I have a feeling i'm missing some basic understanding of access modifiers.</p>

<p>thanks</p>
