Commit Graph
10 Commits
Author SHA1 Message Date
Calcitem b1699f2921 Fix the typo 2022-01-22 11:33:11 +08:00
Calcitem e58db93a4f 将部分 switch 语句转换为 switch 表达式
switch表达式是 C# 8.0 的新功能。
C# 8.0 从 VS2019 开始支持,本项目要求使用 VS2019 以上版本,
因此此新语法糖应都能支持。
2022-01-20 20:24:25 +08:00
Calcitem fb8e26f8d7 refactor: 将部分 if 语句改写为 switch 表达式 2022-01-20 20:24:25 +08:00
Calcitem 1285ba9f1d Use null propagation (IDE0031) (2)
Commit a7a9ec3f9c has not been modified
completely, and the complete modification is now added.
2022-01-20 20:24:25 +08:00
Calcitem a25ebdfd4d 部分 if 条件翻转以缩小代码嵌套层级
一般是在 if 控制范围很大的情况下进行调整,如果控制范围小则不调整。
从第三方代码的 Demo 中复制的代码块不修改。
2022-01-15 09:39:10 +08:00
Calcitem 19a7245c17 Fix some build warnings
Include:
Warning	CS0168	The variable 'ex' is declared but never used
Warning	CS0649	Field 'EditModel.AutoBookmarkStyle.MatchPattern' is never assigned to, and will always have its default value null
Warning	CS0649	Field 'BookmarkElement.AutoLevel' is never assigned to, and will always have its default value 0
2022-01-13 08:56:15 +08:00
WMJ 84795a1745 -避免读取到无法访问的目录时程序崩溃的问题 2022-01-06 15:48:19 +08:00
WMJ 3f5f52301f !格式化源代码 2022-01-06 09:08:16 +08:00
Calcitem 3c4fdc8969 Convert .cs and .txt file encoding to UTF-8 with BOM
Convert the file encoding format to prevent VS from issuing
warnings and displaying garbled characters.
2022-01-04 00:14:51 +08:00
WMJ b42bfb98fa PDF补丁丁公开源代码 2021-12-24 20:35:03 +08:00