title: Activator.CreateInstance with inherited class not in the same project
body: <p>I have a solution that contains two projects.
  First of let me describe my scenario.
  Project 1: holds a base class calls MyBaseClass
  with the following two property and method that i'm interested in: </p>
  
  <p>TypeToLoad - static string property of which inherited class to instantiate with simple get/set functionality.</p>
  
  <p>Instance - static property which returns a MyBaseClass instance of the type specified in TypeToLoad with the following lines of code:</p>
  
  <pre><code>public static MyBaseClass Instance{
     return (MyBaseClass)Activator.CreateInstance(Type.typeof(TypeToLoad));
  }
  </code></pre>
  
  <p>now in the second project I inherit MyBaseClass as follow(of course proper namespace and references have been added).</p>
  
  <pre><code>public class MyInheritClass : MyBaseClass {
      //implements all other functions of MyBaseClass;
  }
  </code></pre>
  
  <p>and one of my other code file, in the same project as MyInheritClass, I have the following lines of code:</p>
  
  <pre><code>Type myType = Type.typeof("MyInheritClass"); //returns the correct "Type"
  MyBaseClass.TypeToLoad = "MyInheritClass";
  MyBaseClass myInstance = MyBaseClass.Instance; //Errors... because Type.typeof(...) could not resolve "MyInheritClass".
  </code></pre>
  
  <p>When I move MyInheritClass code file into the same project as MyBaseClass the code runs just fine.</p>
  
  <p>My question is, is there anyway to create and instance of MyInheritClass using MyBaseClass.Instance by setting MyBaseClass.TypeToLoad = "MyInheritClass" without having to have these two classes in the same project (MyBaseClass in the base DLL class library and MyInheritClass in another project referencing MyBaseclass DLL library) ?</p>
  
  <p>I've tried to search for reflections, Activator but wasn't able to find what I was looking for.  Maybe I don't know the correct terminology for this. </p>