public class Core
{
public static T GetClass<T>(string Assembly)
{
string[] strAssembly = Assembly.Split(Convert.ToChar("."));
System.Runtime.Remoting.ObjectHandle oObjectHandle;
oObjectHandle = System.Activator.CreateInstance(strAssembly[0].ToString(), Assembly);
T oIinsert = (T)oObjectHandle.Unwrap();
return oIinsert;
}
}
No comments:
Post a Comment