会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
确是缘
博客园
首页
新随笔
联系
订阅
管理
[置顶]
C#计算两个日期相差的周数
摘要: public static int week(DateTime start, DateTime end) { return Convert.ToInt32(Ceiling((end - start).TotalDays / 7)); }
阅读全文
posted @ 2020-04-23 13:52 确是缘
阅读(1184)
评论(0)
推荐(0)
2021年1月27日
C# FileSystemWatcher监控程序发布文件夹自动推送nuget到指定库
摘要: namespace FileSystemWatcher { class Program { static void Main(string[] args) { FileSystemWatchDemo(filePath, "*.nupkg", false); Console.ReadLine(); }
阅读全文
posted @ 2021-01-27 18:31 确是缘
阅读(67)
评论(0)
推荐(0)
2020年4月23日
整个网页黑色调(哀悼色)CSS实现
摘要: body{ -webkit-filter: grayscale(100%); /* Chrome, Safari, Opera */ filter: grayscale(100%); }
阅读全文
posted @ 2020-04-23 14:03 确是缘
阅读(486)
评论(0)
推荐(0)
.net core汉字转拼音或拼音首字母
摘要: 首先在项目中引入nuget包NPinyin.Core,然后新建静态转换类,即可在中畅用。 1 public static class PinYinCast 2 { 3 private static Encoding gb2312 = Encoding.GetEncoding("GB2312"); 4
阅读全文
posted @ 2020-04-23 13:59 确是缘
阅读(1725)
评论(0)
推荐(0)
公告