<p>I want to get a <code>System.Type</code> given only the type name in a <code>string</code>.</p>

<p>For instance, if I have an object:</p>

<pre><code>MyClass abc = new MyClass();
</code></pre>

<p>I can then say:</p>

<pre><code>System.Type type = abc.GetType();
</code></pre>

<p>But what if all I have is:</p>

<pre><code>string className = "MyClass";
</code></pre>

```
```
Type type = Type.GetType("foo.bar.MyClass, foo.bar");
```
```
MSDN
.  Make sure the name is
Assembly Qualified
.