12 2022 档案
摘要:提供的线程安全封装类: //1. 引入System.Collections.Concurrent命名 线程安全数据结构 //2. 把之前的非线程安全的数据结构更换成以下数据结构即可; { //List<int> tasklist = new List<int>(); //BlockingCollec
阅读全文
摘要:Jexus以支持ASP.NET、Core、php在Linux上运行为特色,能够支持ASP.NET的原理,就是在Linux上安装了Mono(跨平台.NET运行环境),进而支持ASP.NET程序的运行。 官网:Jexus Web Server 官网 独立版(专业版)自带Mono环境,省去了自己在Linu
阅读全文
摘要:调用接口,分批方法: double num = Math.Ceiling((double)views.Count / (double)pageSize); List<List<TViewModel>> list = new List<List<TViewModel>>(); for (int i =
阅读全文
摘要:1. 调用 bool bResult = ValidateAttributeExtension.Validate<StudentVip>(vip); [Custom] public class StudentVip : Student { [Custom] public string Descrip
阅读全文