随笔分类 -  .NET

1

连接池wait callback
摘要://用发送数据的方法 初始化 线程池的回调方法 WaitCallback w = new WaitCallback(SiteApiUtil.InsertVisitApi); //线程回调的方法 与线程回调方的的参数 加入线程池 ThreadPool.QueueUserWorkItem(w, visi 阅读全文

posted @ 2020-10-20 15:05 Ssumer 阅读(133) 评论(0) 推荐(0) 编辑

Datatable总结
摘要:https://www.cnblogs.com/dwuge/p/5261003.html https://www.cnblogs.com/vaevvaev/p/6899165.html https://www.cnblogs.com/qianqian528/p/8456351.html https: 阅读全文

posted @ 2019-07-16 18:28 Ssumer 阅读(104) 评论(0) 推荐(0) 编辑

关于pc端 app端pdf,word xls等文件预览的功能
摘要:window.open(encodeURI('downloadurl') ,'_system'); 在ios 和安卓window.open 都可以打开系统内置浏览器实现文件的预览功能,亲测在safari浏览器的情况下,可以直接预览各类文件,只不过safari对MIME TYPE比较严 格,需要区别x 阅读全文

posted @ 2019-05-17 16:37 Ssumer 阅读(1268) 评论(0) 推荐(0) 编辑

文件类型总结 MIME
摘要:来源网上https://www.cnblogs.com/zhongcj/archive/2008/11/03/1325293.html {".3gp", "video/3gpp"}, {".apk", "application/vnd.android.package-archive"}, {".asf", "video/x-ms-asf"}, ... 阅读全文

posted @ 2019-05-15 13:23 Ssumer 阅读(218) 评论(0) 推荐(0) 编辑

windows CMD命令大全
摘要:转自 https://www.cnblogs.com/accumulater/p/7110811.html 阅读全文

posted @ 2019-04-22 15:08 Ssumer 阅读(244) 评论(0) 推荐(0) 编辑

Aspose.Cells基础使用方法整理
摘要:Aspose.Cells 插件,将web端数据以excel形式导出到客户端。 相关文档: https://blog.csdn.net/djk8888/article/details/53065416 http://www.mamicode.com/info-detail-1181807.html h 阅读全文

posted @ 2019-03-21 15:04 Ssumer 阅读(364) 评论(0) 推荐(0) 编辑

数据格式特殊转换
摘要:数据类型转换相关 https://www.cnblogs.com/cjm123/p/8619910.html 日期转换相关 https://www.cnblogs.com/johnblogs/p/5912632.html 阅读全文

posted @ 2019-03-12 15:24 Ssumer 阅读(103) 评论(0) 推荐(0) 编辑

https://blog.csdn.net/sxf359/article/details/71082404
摘要:https://blog.csdn.net/sxf359/article/details/71082404 阅读全文

posted @ 2019-03-06 17:05 Ssumer 阅读(156) 评论(0) 推荐(0) 编辑

处理文本
摘要:using System;using System.Collections.Generic;using System.IO;using System.Linq;using System.Text;using System.Threading.Tasks; namespace ConsoleApp3{ 阅读全文

posted @ 2019-01-24 11:01 Ssumer 阅读(182) 评论(0) 推荐(0) 编辑

反射
摘要:https://www.cnblogs.com/sxw117886/p/5687590.html 阅读全文

posted @ 2019-01-14 11:24 Ssumer 阅读(69) 评论(0) 推荐(0) 编辑

Json扩展 (转)
摘要:https://www.newtonsoft.com/json https://www.cnblogs.com/BrokenIce/p/5902441.html https://blog.csdn.net/WuLex/article/details/80880769 阅读全文

posted @ 2019-01-11 13:52 Ssumer 阅读(165) 评论(0) 推荐(0) 编辑

Angualr+asp.net core webapi+efcore系列
摘要:想着学习一门前端框架,WTF,看了又看,卧槽对于.Net程序员来说,还有什么比面向对象更香的呢,所以果断的选择了Angular。正好看各路大神以及官方文档想学习一下asp.net core,那就搞起吧。go,go,go! 参考博客https://www.cnblogs.com/chenxincode 阅读全文

posted @ 2018-12-28 21:19 Ssumer 阅读(275) 评论(0) 推荐(0) 编辑

转 c#中 base64字符串与普通字符串互转
摘要:https://blog.csdn.net/hwt0101/article/details/79758912 转成 Base64 形式的 System.String: string a = "base64字符串与普通字符串互转"; byte[] b = System.Text.Encoding.De 阅读全文

posted @ 2018-12-13 13:36 Ssumer 阅读(10407) 评论(0) 推荐(0) 编辑

前端压缩图片,前端压缩图片后转换为base64.
摘要:今天利用一上午研究了一下前端如何将5m左右的照片转换base64大小为 100k以内! 有两个链接:https://www.cnblogs.com/007sx/p/7583202.html :https://www.cnblogs.com/axes/p/4603984.html :https://w 阅读全文

posted @ 2018-11-07 17:30 Ssumer 阅读(891) 评论(0) 推荐(0) 编辑

C# 将string 转换为二维码图片,然后转为base64字符串编码 。
摘要:需在nuget 添加此dll ///content字符串 public static string GetQRCode(string content, int moduleSize = 9) { var encoder = new QrEncoder(ErrorCorrectionLevel.M); 阅读全文

posted @ 2018-10-29 10:09 Ssumer 阅读(2436) 评论(0) 推荐(0) 编辑

文件流转base64字符串
摘要:public static string GetBase64Data() { string path = @"C: \txt.jpg"; FileStream filestream = new FileStream(path, FileMode.Open); byte[] bt = new byte 阅读全文

posted @ 2018-10-24 11:37 Ssumer 阅读(5305) 评论(0) 推荐(0) 编辑

JSON string 在内存中转流 MemoryStream 代码,以及需要注意的问题utf-8问题
摘要:MemoryStream ms = new MemoryStream(System.Text.Encoding.UTF8.GetBytes("字符串"); string str = Convert.ToBase64String(ms.ToArray()); 阅读全文

posted @ 2018-10-18 14:15 Ssumer 阅读(618) 评论(0) 推荐(0) 编辑

C# 打开文件 保存文件
摘要:string path = @"C: \Users\users\Desktop\xxxx.txt";// 文件路径 FileStream filestream = new FileStream(path, FileMode.Open); byte[] bt = new byte[filestream 阅读全文

posted @ 2018-10-18 10:08 Ssumer 阅读(4457) 评论(0) 推荐(0) 编辑

常见Json字符串反序列化处理方式总结
摘要:常用来处理Json字符串序列化 反序列化组件:Newtonsoft.Json (https://www.newtonsoft.com/json) 参考资料https://www.cnblogs.com/shang201215019/p/7907655.html 一丶JObject Class () 阅读全文

posted @ 2018-10-17 11:29 Ssumer 阅读(2762) 评论(0) 推荐(0) 编辑

如何取未知Json字符串 某个主键取对应的Value
摘要:需添加引用using Newtonsoft.Json; string strJon "Json 字符串"; JObject obj = JObject.Parse(strJon ); string serial_number = obj["status"].ToString(); 更多Json的操作 阅读全文

posted @ 2018-10-15 22:19 Ssumer 阅读(427) 评论(1) 推荐(0) 编辑

1

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示