title: Convert String to Type in C#
body: <p>If I receive a string that contains the name of a class and I want to convert this string to a real type (the one in the string), how can I do this?</p>
  
  <p>I tried</p>
  
  <pre><code>Type.GetType("System.Int32")
  </code></pre>
  
  <p>for example, it appears to work.</p>
  
  <p>But when I try with my own object, it always returns null ...</p>
  
  <p>I have no idea what will be in the string in advance so it's my only source for converting it to its real type.</p>
  
  <pre><code>Type.GetType("NameSpace.MyClasse");
  </code></pre>
  
  <p>Any idea?</p>