摘要: Converter using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; using System.Threading.Tas 阅读全文
posted @ 2025-03-06 13:59 苏秦与真相 阅读(3) 评论(0) 推荐(0) 编辑
摘要: Win11设计的有个快速启动,默认情况下关闭电脑,并没有完全杀掉所有进程,这样在某些进程挂起的情况下,关机再重启,进程仍是挂起状态。如果有些场景需要通过关机重启解决挂起进程的问题,要么改注册表、要么去系统设置里去掉快速重启的设置,这两种在这里不做多的解释,感兴趣的可以自行搜索查看操作。咱们今天讲一个 阅读全文
posted @ 2025-02-13 14:06 苏秦与真相 阅读(36) 评论(0) 推荐(0) 编辑
摘要: Task.WaitAll()和Task.WhenAll()区别:1、WaitAll 同步方法,会阻塞当前线程 在 UI 线程使用可能导致死锁 抛出 AggregateException 适用于控制台或后台工作线程 2、WhenAll 异步方法,不会阻塞当前线程 返回 Task,可以使用 await 阅读全文
posted @ 2024-12-24 15:40 苏秦与真相 阅读(38) 评论(0) 推荐(0) 编辑
摘要: <CalendarConverters:CalendarItemConverter x:Key="CalendarItemConverter"/> <Style x:Key="CalendarItemStyle" TargetType="{x:Type CalendarItem}"> <Setter 阅读全文
posted @ 2024-11-22 15:26 苏秦与真相 阅读(11) 评论(0) 推荐(0) 编辑
摘要: C# 读取文件或文件夹的时候,路径有时候会变成带有波浪线(~)的形式,这是DOS 8.3文件名规则,感兴趣的小伙伴可以搜搜看。 遇到这种情况,想要转换成实际路径,需要调用Win32 API,代码如下: 其中GetShortPathName方法,是将路径全名转换为DOS 8.3规则,GetLongPa 阅读全文
posted @ 2024-04-10 16:57 苏秦与真相 阅读(69) 评论(0) 推荐(0) 编辑
摘要: 一个在线的开源项目示例链接 阅读全文
posted @ 2024-03-08 18:35 苏秦与真相 阅读(6) 评论(0) 推荐(0) 编辑
摘要: 近期用到PDF文档打印,翻阅资料,找到一个参考网站,收藏下 文中提到了几个开源插件,其中Spire,这个有收费版和免费版,之前我们用过免费版,后来发现免费版只能支持10页以内的PDF文档,超过10页就报错了,在这里说明一下,方便大家避坑。其实,Spire主要功能是PDF编辑,打印是附加的,如果需要编 阅读全文
posted @ 2024-03-01 11:40 苏秦与真相 阅读(56) 评论(0) 推荐(0) 编辑
摘要: 以管理员运行cmd,执行下面的命令,添加排除项 powershell -inputformat none -outputformat none -NonInteractive -Command Add- MpPreference -ExclusionPath "程序或者文件夹全路径" 参考链接 阅读全文
posted @ 2024-02-01 17:50 苏秦与真相 阅读(1195) 评论(0) 推荐(0) 编辑
摘要: 熊猫无损音乐,一个可以免费下载音乐的平台,值得收藏 阅读全文
posted @ 2024-02-01 11:31 苏秦与真相 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 错误信息: 2023-12-12T09:32:31.383149Z 0 [ERROR] InnoDB: Ignoring the redo log due to missing MLOG_CHECKPOINT between the checkpoint 5777611209 and the end 阅读全文
posted @ 2024-01-10 17:45 苏秦与真相 阅读(301) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示