11 2018 档案
【Linux】使用Nginx发布dotnet的网站
摘要:1.安装Nginx【自行百度】 2.安装dotnet运行时【自行百度】 3.配置Nginx—— /etc/nginx/conf.d/default.conf server { listen 80; server_name localhost; location / { proxy_pass http 阅读全文
posted @ 2018-11-26 08:51 絆τ 阅读(743) 评论(0) 推荐(1)
【NPOI】通过NPOI从内存流中创建EXCEL
摘要:一言不合就开始帖代码 XSSFWorkbook workbook = new XSSFWorkbook(); //创建工作簿 XSSFSheet sheet = (XSSFSheet)workbook.CreateSheet("test"); //创建表单 XSSFRow headerRow = ( 阅读全文
posted @ 2018-11-24 08:53 絆τ 阅读(1248) 评论(0) 推荐(0)
【C#】时间类型修改
摘要:鉴于前后端分离发展的迅速。前端很多时间控件都会读UTC时间。 安利一个小知识 // // 摘要: // Creates a new System.DateTime object that has the same number of ticks as the // specified System. 阅读全文
posted @ 2018-11-20 11:23 絆τ 阅读(480) 评论(0) 推荐(0)
【C#】多数组间的取重取余
摘要:string[] arrRate = new string[] { "a", "b", "c", "d" };//A string[] arrTemp = new string[] { "c", "d", "e" };//B string[] arrUpd = arrRate.Intersect(a 阅读全文
posted @ 2018-11-18 16:34 絆τ 阅读(411) 评论(0) 推荐(0)
【C#】多态
摘要:public class Animal { public virtual void Eat() { Console.WriteLine("Animal eat"); Console.ReadKey(); } } public class Cat : Animal { public override 阅读全文
posted @ 2018-11-17 14:39 絆τ 阅读(128) 评论(0) 推荐(0)