12 2022 档案

摘要:Type[] types = AppDomain.CurrentDomain.GetAssemblies() .SelectMany(a => a.GetTypes().Where(t => t.GetInterfaces().Contains(typeof(IConfigConvert)))) . 阅读全文
posted @ 2022-12-07 13:28 willamyao 阅读(55) 评论(0) 推荐(0) 编辑
摘要:在.net core 中,utf8编码转GBK编码会报错,.netcore 无法实现编码的转换 解决方法 1、Nuget中搜索安装 System.Text.Encoding.CodePages 2、 在startup 中 做如下设置 public Startup(IConfiguration con 阅读全文
posted @ 2022-12-05 10:18 willamyao 阅读(462) 评论(0) 推荐(0) 编辑
摘要:开发原因:工厂产品需要频繁扫描产品SN进行产品踢转处理不良以及工单结多产品 直接上代码: using System; using System.Collections.Generic; using System.Diagnostics; using System.Runtime.InteropSer 阅读全文
posted @ 2022-12-02 17:47 willamyao 阅读(3637) 评论(0) 推荐(2) 编辑