随笔分类 -  C#

1 2 3 4 5 ··· 7 下一页
visual studio
摘要:一、安装打印机驱动 二、C#示例 目前Zebra.Printer.SDK最新版本为3.0;.NetFrameWork可使用2.16版本。 1、使用Tcp网口 string zplStr = ""; string tcpIp = "192.168.1.101"; int tcpPort = 6101; 阅读全文
posted @ 2024-10-14 15:44 ꧁执笔小白꧂ 阅读(859) 评论(0) 推荐(0) 编辑
摘要:Datamatrix优点就是面积小,也可存储大量数据;非常适合打印3C产品的产品码和零部件码。 阅读全文
posted @ 2024-07-09 16:13 ꧁执笔小白꧂ 阅读(57) 评论(0) 推荐(0) 编辑
摘要:项目演示地址:https://gitee.com/qq28069933146_admin/itextsharp_v416_qrcoder_simple(因为itextsharp_v416涉及敏感开源协议的原因项目已删除;虽然只是LGPL协议) 1、主要可参考代码如下: /// <summary> / 阅读全文
posted @ 2024-05-08 22:27 ꧁执笔小白꧂ 阅读(38) 评论(0) 推荐(0) 编辑
摘要:项目演示地址:https://gitee.com/qq28069933146_admin/itextsharp_v416_qrcoder_simple(因为itextsharp_v416涉及敏感开源协议的原因项目已删除;虽然只是LGPL协议) 1、QRCoderHelper类 /** *┌───── 阅读全文
posted @ 2024-05-07 22:02 ꧁执笔小白꧂ 阅读(46) 评论(0) 推荐(0) 编辑
摘要:using System.Collections.Generic; using System.IO; using System.Net; using System.Net.Mail; using System.Text; namespace Common { /// <summary> /// 发送 阅读全文
posted @ 2024-01-25 16:35 ꧁执笔小白꧂ 阅读(86) 评论(0) 推荐(0) 编辑
摘要:1、先安装2019在线安装器(备用下载地址) 2、安装net framework4.5 阅读全文
posted @ 2024-01-19 18:29 ꧁执笔小白꧂ 阅读(101) 评论(0) 推荐(0) 编辑
摘要:using (var wc = new WebClient()) { wc.DownloadFile(downloadUri, downloadedZipFile); } 阅读全文
posted @ 2023-08-30 09:04 ꧁执笔小白꧂ 阅读(115) 评论(0) 推荐(0) 编辑
摘要:212 阅读全文
posted @ 2023-08-10 08:14 ꧁执笔小白꧂ 阅读(37) 评论(0) 推荐(0) 编辑
摘要:212 阅读全文
posted @ 2023-08-10 08:13 ꧁执笔小白꧂ 阅读(25) 评论(0) 推荐(0) 编辑
摘要:代码地址:CSharp_DistributedCache_Simple 视频演示:Net7_WebAPI分布式缓存中间件DistributedCache 一、目录 缓存类别 Nuget 特性 Memory内存 Microsoft.Extensions.Caching.Memory(非分布式内存) R 阅读全文
posted @ 2023-08-10 08:12 ꧁执笔小白꧂ 阅读(420) 评论(0) 推荐(0) 编辑
摘要:代码地址:CSharp_DistributedCache_Simple 一、WinForm版(System.Runtime.Caching) 1、MemoryCache示例 2、引用Negut包 3、MemoryCacheHelper 查看代码 /** *┌───────────────────── 阅读全文
posted @ 2023-07-16 22:16 ꧁执笔小白꧂ 阅读(1494) 评论(0) 推荐(0) 编辑
摘要:一、Mapster简介 1、什么是Mapster(官方文档地址:https://github.com/MapsterMapper/Mapster) Mapster是一个高性能的用于对象映射的类库,同类型的产品还有AutoMapper。它提供了一系列的API和工具,以下为几个重要的类和接口: @Ada 阅读全文
posted @ 2023-06-28 14:58 ꧁执笔小白꧂ 阅读(2916) 评论(0) 推荐(2) 编辑
摘要:原文:http://www.zzvips.com/article/207824.html、https://blog.csdn.net/sqzhao/article/details/52488939 1、ZebraHelper using System; using System.Collection 阅读全文
posted @ 2023-04-15 18:31 ꧁执笔小白꧂ 阅读(1899) 评论(0) 推荐(1) 编辑
摘要:string appPath=Path.GetDirectoryName("文件路径") ; // 获取文档的目录 string str1=Directory.GetParent(appPath).FullName; // 目录的父 string str2=Directory.GetParent(a 阅读全文
posted @ 2023-04-14 11:10 ꧁执笔小白꧂ 阅读(183) 评论(0) 推荐(0) 编辑
摘要:string dir = Environment.GetFolderPath(Environment.SpecialFolder.CommonPictures); // 图片 string dir = Environment.GetFolderPath(Environment.SpecialFold 阅读全文
posted @ 2023-04-14 10:43 ꧁执笔小白꧂ 阅读(1144) 评论(0) 推荐(0) 编辑
摘要:DirectoryEntry rootfolder = new DirectoryEntry("IIS://localhost/W3SVC/1/ROOT"); // IIS://服务器的名字/要操作的Web服务器类型/站点/站点的虚拟目录 1、创建对象: 2、修改对象: #region 1、利用Di 阅读全文
posted @ 2023-04-14 09:28 ꧁执笔小白꧂ 阅读(168) 评论(0) 推荐(0) 编辑
摘要:/** *┌──────────────────────────────────────────────────────────────┐ *│ 描 述:进程相关的工具类 *│ 作 者:执笔小白 *│ 版 本:1.2 *│ 创建时间:2022-10-13 10:40:56 *└─────────── 阅读全文
posted @ 2023-03-16 12:34 ꧁执笔小白꧂ 阅读(52) 评论(0) 推荐(0) 编辑
摘要:一、AutoMapper简介 1、什么是AutoMapper(官方文档地址:https://github.com/MapsterMapper/Mapster) Mapster是一个高性能的用于对象映射的类库,同类型的产品还有AutoMapper。它提供了一系列的API和工具,以下为几个重要的类和接口 阅读全文
posted @ 2023-01-17 15:09 ꧁执笔小白꧂ 阅读(1045) 评论(1) 推荐(3) 编辑
摘要:计算100!: Console.WriteLine("BigInteger"); BigInteger result4 = 0; for (int i = 1; i <= 100; i++) { if (result4 == 0) { result4 = 1; } else { result4 = 阅读全文
posted @ 2023-01-11 15:00 ꧁执笔小白꧂ 阅读(79) 评论(0) 推荐(0) 编辑
摘要:一、共享内存的帮助类 /** *┌──────────────────────────────────────────────────────────────┐ *│ 描 述:两个exe程序之间通信_共享内存传递(基础示例,程序中使用时不进一步封装是不够的) *│ 作 者:执笔小白 *│ 版 本:1 阅读全文
posted @ 2022-12-26 10:27 ꧁执笔小白꧂ 阅读(1547) 评论(0) 推荐(0) 编辑

1 2 3 4 5 ··· 7 下一页
点击右上角即可分享
微信分享提示