摘要:
特性attribute: 修饰作用 attribute声明,标识,生效,原理,扩展,aop思想的体现; attribute声明:[]放在方法上,或类上,属性上,起修饰作用 1.常见的特性(你知道特性吗?用过吗?你知道的特性举例说明一下): [Obsolete(“请使用xxx代替”,ture)]:// 阅读全文
posted @ 2020-08-02 23:23
大树2
阅读(403)
评论(0)
推荐(0)
摘要:
反射高级应用 反射reflection:3种动态加载.dll的方法 反射定义: c#代码--》VS 编译器编译dll,exe(metadata元数据,IL,)-->CLR,JIT 运行时环境将dll,exe 编译为电脑cpu可以识别的机器码01010001 reflection 是一个帮助类,可以读 阅读全文
posted @ 2020-08-02 20:26
大树2
阅读(346)
评论(0)
推荐(0)
摘要:
泛型generic: 1.定义:为了达到用一套代码满足多种需求。list<int> intList=new List<int>(); intlist.where<int>(i=>i >100); public bool update<T>(T t) where T:BaseModel { Type 阅读全文
posted @ 2020-08-02 11:53
大树2
阅读(254)
评论(0)
推荐(0)

浙公网安备 33010602011771号