title: How to get type from different namespace than System in c#?
body: <p>I would like to create types when being given <strong>only strings</strong> of their names. Here it's obvious:</p>
  
  <pre><code>Type t = System.Type.GetType("System.Double");
  </code></pre>
  
  <p>But when I try to get type from another namespace, like <code>System.Drawing</code>, the above method won't return the correct type. Working solution I've found:</p>
  
  <pre><code>Assembly foundAssembly = AppDomain.CurrentDomain.GetAssemblies().SingleOrDefault(assembly =&gt; assembly.GetName().Name == "System.Drawing");
  Type t = foundAssembly.GetType("System.Drawing.Color");
  </code></pre>
  
  <p>However, it looks pure and I guess doing it costs some time (<code>AppDomain.CurrentDomain</code> has 22 assemblies in my case, but multiplied by 10000, it's something). So can we get it faster? I'm not searching for a solution like <code>type = typeof(System.Drawing.Color);</code>, because possibly I'll have to translate <code>"System.Text.StringBuilder"</code> to its type and so on...</p>