上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 29 下一页
摘要: Java ZIP文件解压 备忘笔记 代码: private byte[] unZip(byte[] data) { byte[] bArr = null; try { ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStre 阅读全文
posted @ 2021-01-25 15:29 0611163 阅读(99) 评论(0) 推荐(0)
摘要: Java ZIP文件解压 备忘笔记 pom引用: <dependency> <groupId>dom4j</groupId> <artifactId>dom4j</artifactId> <version>1.6.1</version> </dependency> View Code 代码: pri 阅读全文
posted @ 2021-01-25 15:27 0611163 阅读(67) 评论(0) 推荐(0)
摘要: 1.Leaflet.js 开发地图功能,技术上值得一提的是通过修改源码解决了地图纠偏问题 2.ASP.NET Web API 以前没有做过,自己新研究的技术,没有上.NET Core,公司用不到,是.NET Framework版的。我比较喜欢这项技术,因为程序写起来简单,用起来也简单,别的语言开发的 阅读全文
posted @ 2020-12-21 18:25 0611163 阅读(196) 评论(2) 推荐(1)
摘要: 使用Castle.Core.dll实现,核心代码是使用Castle.DynamicProxy.ProxyGenerator类的CreateInterfaceProxyWithoutTarget方法动态创建代理对象 NuGet上面Castle.Core的下载量1.78亿之多 一、重构前的项目代码 重构 阅读全文
posted @ 2020-12-18 13:37 0611163 阅读(610) 评论(7) 推荐(1)
摘要: 代码: public static Action<T, object> EmitSetter<T>(string propertyName) { var type = typeof(T); var dynamicMethod = new DynamicMethod("EmitCall", null, 阅读全文
posted @ 2020-11-04 00:10 0611163 阅读(360) 评论(0) 推荐(0)
摘要: 同事写了这样一段代码: FactoryStartNew类: using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace SunCreate.Common.ComLib 阅读全文
posted @ 2020-10-31 14:39 0611163 阅读(2097) 评论(0) 推荐(0)
摘要: WPF通过WindowChrome实现Window无边框窗体阴影效果 代码: <Window x:Class="SunCreate.PACP.Client.UI.GIS.CameraDetailsWin" xmlns="http://schemas.microsoft.com/winfx/2006/ 阅读全文
posted @ 2020-09-18 15:58 0611163 阅读(2446) 评论(2) 推荐(0)
摘要: async await 异步下载 异步代码加锁 lock 异步缓存 FTP异步下载代码: /// <summary> /// 异步下载文件 /// </summary> /// <param name="ftpPath">ftp路径</param> /// <param name="ftpUserI 阅读全文
posted @ 2020-08-12 10:20 0611163 阅读(758) 评论(0) 推荐(0)
摘要: 父页面代码: <!DOCTYPE html> <html> <head> <title>选择位置demo</title> <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name 阅读全文
posted @ 2020-08-05 20:10 0611163 阅读(264) 评论(0) 推荐(0)
摘要: 不知道用什么词形容,就叫它假异步吧。 写异步方法,async 和 await 要一路写到底,否则就是假异步,并不能提高请求线程池的吞吐量。 真正的异步,我的理解是这样的:比如调用一个查询接口,在当前线程,把SQL扔给数据库,当前线程释放,去干别的事情,数据库查询完了,通知我,我再在另一个线程里(也可 阅读全文
posted @ 2020-08-01 16:50 0611163 阅读(1298) 评论(6) 推荐(1)
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 29 下一页