![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
.net
撒旦法师打发
这个作者很懒,什么都没留下…
展开
-
.net 泛型学习 Generic
1.泛型:先声明,延迟编译。public static void DoSome(T t){Console.WriteLine(t);}这个方法就是泛型方法,先申明参数为T,不知道具体是什么类型。使用的时候DoSome(1);DoSome(“hello”);DoSome(new Student());当使用的时候,才会具体确定传入参数是什么优点:为了让一个方法,不同参数都可以使用...原创 2019-02-24 23:28:09 · 95 阅读 · 0 评论 -
.Net 反射学习
Why?为什么使用反射MVC ORM EF 都是用的反射。反射可以让程序的扩展性,灵活性得到加强。一起即可动态创建what 反射原理动态加载类库 ,先添加引用类库,或者复制debug里面的文件dll到运行文件DebugAssembly assembly = Assembly.Load(“WeiAi.DB.MysqlHelper”);//反射生成类库 使用Assembly ,Load方法 里...原创 2019-02-24 23:29:16 · 70 阅读 · 0 评论