How do I get the type (not of a class but that) of an instance of class
<p>To get the type of a class called <strong>myClass</strong> I do this</p>

<pre><code>Type myType = (typeof(myClass))
</code></pre>

<p>How about, instead of having <strong>myClass</strong>, I've rather the <strong>instanceOfMyClass</strong>? How do I get the type?</p>

<p>Let's say I've this</p>

<pre><code>Contact contact = new Contact();
</code></pre>

<p>If I want to know which type is contact, how do I do it </p>

<p>Thanks for helping</p>
