How to change the class of an object dynamically in C#?
<p>Suppose I have a base class named Visitor, and it has 2 subclass Subscriber and NonSubscriber.</p>

<p>At first a visitor is start off from a NonSubscriber, i.e.</p>

<pre><code>NonSubscriber mary = new NonSubscriber();
</code></pre>

<p>Then later on this "mary" subscribed to some services, and I want to change the type of "mary" to Subscriber.</p>

<p>What is the conventional way to do that?</p>
