摘要:
1.基于反射,实例化泛型对象:Activator public static T GetInStance<T>() { var ob = Activator.CreateInstance<T>(); return ob; } 2.通过类型约束 public static T GetInStance2 阅读全文
posted @ 2021-09-06 14:12
Robot-Blog
阅读(171)
评论(0)
推荐(0)
摘要:
1.下载文件,提取码: oft9 2.配置文件添加数据库连接 <connectionStrings> <add name="ConnStr" connectionString="data source=AAA;initial catalog=AAA;persist security info=Tru 阅读全文
posted @ 2021-09-06 11:36
Robot-Blog
阅读(129)
评论(0)
推荐(0)

浙公网安备 33010602011771号