title: How do I create an instance from a string in C#?
body: <p>I'm reading information from an XML which contains the type of an object that I need to instantiate along with it's constructor parameters.</p>
  
  <p>The object type is actually in another project, within a sibling namespace. (I need to create a Company.Project2.Type within Company.Project1 class.)</p>
  
  <p>I found <a href="https://stackoverflow.com/questions/223952/c-create-an-instance-of-a-class-from-a-string">this question</a>, but it doesn't handle the constructor parameters or the fact that it's in another namespace.</p>
  
  <p>How can I do this?</p>
  
  <p><strong>Edit:</strong> The assembly name and default namespace wasn't set correctly in the project properties.</p>