c#用反射动态获取类型

时间:2020-09-17 22:30:28   收藏:0   阅读:41

Type tt = Assembly.Load("Model").GetType(tablename);
tt.GetType();

//object ff = Activator.CreateInstance(tt, null);

//PropertyInfo[] props = tt.GetProperties();

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!