title: C# question about GetType of class
body: <p>I have an assembly asdf.dll and it has a class 'Class1'.</p>
  
  <p>How can I get the type of Class1?</p>
  
  <pre><code>string a = "Class1"; //Class1 is the name of class in asdf.dll
  string typeString = typeof(Class1).FullName; // here I only have the string Class1 and not Class Class1
  AssemblyName assemblyName = AssemblyName.GetAssemblyName("asdf.dll");
  Type type = Type.GetType(typeString + ", " + assemblyName);
  </code></pre>
  
  <p>How can I get the type of a class from a string holding the class name?</p>