//创建实例对象 public object CreateInstance(string typeFullName, params object[] args) { object instance; #if ILRuntime instance = ILAppDomain.Instantiate(typeFullName, args); #else Type type = ReflectAssembly.GetType(typeFullName); instance = Activator.CreateInstance(type, args); #endif return(instance); }