Removing Accessors from an Object
<p>Give the following class:</p>

<pre><code>public Person
{
 public string Name {get; set;}
 public string Age {get; set; }
}
</code></pre>

<p>If I wanted to then Return a IList is there anyway to return the List will all the Functionality of an IList but with the setters removed? Possibly with an extension method to remove the setters. I would Imagine you would have to use reflection but is this the only way that this could be done? Would it be feasible from a speed/implementation point of view. </p>

<p>I was just wondering how this could be done, it is not an actual design. And I am aware of just returning an IEnumerable, or IEnumerable with a skip or yield that would solve for this problem. </p>

<p>Thanks</p>
