title: Type.GetType Failing but property.PropertyType Works Fine
body: <p>I am iterating through the object and initializing all the properties of that object. First the type of the object i.e class was placed in my same project and it worked fine. Now, I moved the class into a different project but still making the same object by using AssemblyName.Namespace.Class but it stopped working. </p>
  
  <p>Here is my previous code: </p>
  
  <pre><code>var o = Activator.CreateInstance(Type.GetType(property.PropertyType.Name)); 
  </code></pre>
  
  <p>The above always returned null. So, I tried the following: </p>
  
  <pre><code>var o = Activator.CreateInstance(property.PropertyType); 
  </code></pre>
  
  <p>and it worked and created the correct object. I am curious why this happened!</p>