Can access to an Object''s properties be restricted by accessing Type
<p>I want to make properties of an object readonly, except for certain  classes that I want to allow access to change property values. How do I do this? </p>

<pre><code>class Restricted ()
{ 

public int Property1{get; }
public int Property2{get; }

}
</code></pre>

<p>If I do :</p>

<pre><code>public int Property1{ get; private set;}
</code></pre>

<p>How can I choose which class to allow to set this property? check typeof? Is this a valid approach ans secure?</p>
