摘要: ResponseCacheAttribute 响应缓存 Duration持续时间 [ResponseCache(Duration=600)] 单位是秒 客户端缓存,浏览器缓存,进入浏览器之后会存在缓存信息时间持续600s 如果切换浏览器之后浏览器信息还是会进入控制器 1 [ResponseCache 阅读全文
posted @ 2021-01-18 16:10 YZM_Leo 阅读(127) 评论(0) 推荐(0)
摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading; 6 using System.Threading.Tasks 阅读全文
posted @ 2021-01-17 20:11 YZM_Leo 阅读(164) 评论(0) 推荐(0)
摘要: 1 using Ruanmou.Framework.Data; 2 using Ruanmou.Libraries.IDAL; 3 using Ruanmou.Libraries.Model; 4 using System; 5 using System.Collections.Generic; 6 阅读全文
posted @ 2021-01-07 11:11 YZM_Leo 阅读(125) 评论(0) 推荐(0)
摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading; 6 using System.Threading.Tasks 阅读全文
posted @ 2021-01-07 10:41 YZM_Leo 阅读(398) 评论(0) 推荐(0)
摘要: 1 public static DataSet ExcelToDataSet(string filename) //函数用来读取一个excel文件到DataSet集中 2 { 3 string strCon = "Provider=Microsoft.Jet.OLEDB.4.0;" + 4 "Ext 阅读全文
posted @ 2021-01-07 10:21 YZM_Leo 阅读(114) 评论(0) 推荐(0)
摘要: Lambd是什么? 1,Lambd只是实例化委托的一个参数,就是一个方法 lambd是一个匿名方法,但是在程序编译的时候编译会分配一个名字还会产生一个私有密封类(Sealed) using System; using System.Collections.Generic; using System. 阅读全文
posted @ 2021-01-05 00:16 YZM_Leo 阅读(67) 评论(0) 推荐(0)
摘要: 委托 多播委托 意义 /多播委托有啥用呢?一个委托实例包含多个方法,可以通过+=/-=去增加/移除方法,Invoke时可以按顺序执行全部动作 //多播委托:任何一个委托都是多播委托类型的子类,可以通过+=去添加方法 //+= 给委托的实例添加方法,会形成方法链,Invoke时,会按顺序执行系列方法 阅读全文
posted @ 2021-01-04 15:08 YZM_Leo 阅读(108) 评论(0) 推荐(0)
摘要: 委托: 关键字 Delegate 用法中无返回值委托是Action<> 有返回值是Func 委托从根本上来说就是一个类,继承值System MulticastDelegate 该类是一个密封类,是不可以被继承 使用案例 using System; using System.Collections.G 阅读全文
posted @ 2021-01-02 19:23 YZM_Leo 阅读(88) 评论(0) 推荐(0)
摘要: https://www.cnblogs.com/sloanlv/p/11218269.html 阅读全文
posted @ 2020-07-14 16:58 YZM_Leo 阅读(149) 评论(0) 推荐(0)
摘要: https://www.cnblogs.com/zhao365845726/p/9241725.html 阅读全文
posted @ 2020-07-14 13:43 YZM_Leo 阅读(674) 评论(0) 推荐(0)