Reflection, dynamic. How to replace one object with another?
<p>I have an object like this</p>

<pre><code>public class Simple
{
    public string Value
    {
      get { return GetProperty(); }
    }

    // different methods, fields, events, etc.
}
</code></pre>

<p>Possible to replace instance of the class <em>Simple</em> with equal object, but with setter?</p>

<p>How to implement ...</p>

<pre><code>private object Substitution(object simple)
{
    object newSimple;

    // implementations

    newSimple.Value = "data";
    return newSimple;
}
</code></pre>

<p>To have something like this</p>

<pre><code>public class Simple
{
    public string Value { get; set; }

    // my methods, fields, events ...
}
</code></pre>

<p>I thought to create a class and inherit from SystemObject, then you can create different dynamic properties, but could not do :(</p>

<p>Or maybe try to inherit from this object (how?) and override the properties?</p>

<p>Thanks</p>
