title: C# Create objects with Generics at runtime
body: <p>In the following example i can create an object dynamically via a string; however, i have no way to get at the public methods of BASE class.  i can't cast obj to a BASE because i don't know what generic will be used at design time.  any suggestings on doing so at runtime would be nice.  </p>
  
  <p>Project A contains Class A{T,J> : BASE{T,J><br>
  Project B contains Class B{T,J> : BASE{T,J></p>
  
  <p>Project C contains Class BASE{T,J><br>
            public virtual control{T,J> item</p>
  
  <p>Project Windows Form<br>
  cmdGo_Click event</p>
  
  <p>string dll = textbox1.text      //ex "ProjectA.dll"<br>
  string class = textbox2.text    //ex "A`2[enuT,enuJ]"<br>
  object obj = activator.createinstancefrom(dll,class)</p>