上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 23 下一页

2022年8月29日

C# PDF加密

摘要: 引用 Nuget itext7 using iText.Kernel.Pdf; using System; using System.Collections.Generic; using System.Linq; using System.Runtime; using System.Text; us 阅读全文

posted @ 2022-08-29 11:21 糯米白白 阅读(303) 评论(0) 推荐(0) 编辑

C# 生成压缩包

摘要: 引用 Nuget包 ICSharpCode.SharpZipLib using ICSharpCode.SharpZipLib.Zip; using System; using System.Collections.Generic; using System.Linq; using System.T 阅读全文

posted @ 2022-08-29 11:17 糯米白白 阅读(79) 评论(0) 推荐(0) 编辑

C# 读取XML数据

摘要: 引用 System.Xml using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Xml; na 阅读全文

posted @ 2022-08-29 11:16 糯米白白 阅读(667) 评论(0) 推荐(0) 编辑

C# Word文档转PDF

摘要: 引用 Nuget包 Microsoft.Office.Interop.Word using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.T 阅读全文

posted @ 2022-08-29 11:13 糯米白白 阅读(1606) 评论(0) 推荐(0) 编辑

2022年8月26日

C# XML读取

摘要: https://www.cnblogs.com/yuanshuang-club/p/12022037.html 阅读全文

posted @ 2022-08-26 14:18 糯米白白 阅读(4) 评论(0) 推荐(0) 编辑

正则表达式

摘要: 一、校验数字的表达式 数字:^[0-9]*$ n位的数字:^\d{n}$ 至少n位的数字:^\d{n,}$ m-n位的数字:^\d{m,n}$ 零和非零开头的数字:^(0|[1-9][0-9]*)$ 非零开头的最多带两位小数的数字:^([1-9][0-9]*)+(\.[0-9]{1,2})?$ 带1 阅读全文

posted @ 2022-08-26 10:40 糯米白白 阅读(10) 评论(0) 推荐(0) 编辑

2022年8月25日

C# 金额转大写

摘要: /// <summary> /// 金额转大写 /// </summary> /// <param name="s"></param> /// <returns></returns> public static string AmountToChinese(double s) { s = Math. 阅读全文

posted @ 2022-08-25 18:02 糯米白白 阅读(121) 评论(0) 推荐(0) 编辑

C#中ToString数据类型格式大全(千分符)总结

摘要: 用DataFormatString格式化GridView 在 GridView里面显示数据,要显示的数据有好多位小数,就想让它只显示两位小数,在delphi里,直接用DisplayFormat就行了, 在.net中,查了半天msdn,发现使用DataFormatString是可以实现这个功能的,但是 阅读全文

posted @ 2022-08-25 15:20 糯米白白 阅读(391) 评论(0) 推荐(0) 编辑

SQLite 将字符串拼接

摘要: SQLite中不是使用的‘+’来操作,是需要使用特殊符号“||” 例如:如果是其他字段形式的需要先装换为 字符型 使用CAST(字段名 as TEXT) select CAST(column as TEXT) || '%' from table 用'||'拼接字符串 比如column是100的话 那 阅读全文

posted @ 2022-08-25 14:07 糯米白白 阅读(2463) 评论(0) 推荐(0) 编辑

2022年8月24日

C# 缓存的使用

摘要: https://www.cnblogs.com/snailblog/p/11570094.html 阅读全文

posted @ 2022-08-24 12:02 糯米白白 阅读(9) 评论(0) 推荐(0) 编辑

上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 23 下一页

导航