I'm getting a Type
using Assembly
class as follows:
var asm = Assembly.GetAssembly(typeof(MyAssembly));
var t=asm.GetType("FULLY QUALIFIED CLASS NAME", true, true);
Then I create object from this type:
var obj = Activator.CreateObject(t, new []{ params });
Now I want to convert or cast this object to a Generic
object (actually SubSonic Active Record Object).
var record = (ActiveRecord<PUT SOMEHOW TYPE t HERE>)obj;
How can I accomplish this?