diff --git a/Shared/Extensions/EnumerableExtensions.cs b/Shared/Extensions/EnumerableExtensions.cs index ba0a2ba..16e246b 100644 --- a/Shared/Extensions/EnumerableExtensions.cs +++ b/Shared/Extensions/EnumerableExtensions.cs @@ -1,4 +1,4 @@ -namespace MeloongCore.Extensions; +namespace MeloongCore.Extensions; public static class EnumerableExtensions { #region 去重 diff --git a/Shared/Extensions/ExceptionExtensions.cs b/Shared/Extensions/ExceptionExtensions.cs index e299736..e6bd175 100644 --- a/Shared/Extensions/ExceptionExtensions.cs +++ b/Shared/Extensions/ExceptionExtensions.cs @@ -1,4 +1,4 @@ -using System.Net.Sockets; +using System.Net.Sockets; namespace MeloongCore.Extensions; public static class ExceptionExtensions { diff --git a/Shared/Extensions/StringExtensions.cs b/Shared/Extensions/StringExtensions.cs index 6caa8a6..c6243a7 100644 --- a/Shared/Extensions/StringExtensions.cs +++ b/Shared/Extensions/StringExtensions.cs @@ -1,4 +1,4 @@ -using System.Text.RegularExpressions; +using System.Text.RegularExpressions; namespace MeloongCore.Extensions; public static class StringExtensions { diff --git a/Shared/Extensions/WebExtensions.cs b/Shared/Extensions/WebExtensions.cs index 4e4e20d..fa046da 100644 --- a/Shared/Extensions/WebExtensions.cs +++ b/Shared/Extensions/WebExtensions.cs @@ -1,4 +1,4 @@ -namespace MeloongCore.Extensions; +namespace MeloongCore.Extensions; public static class WebExtensions { // Source - https://stackoverflow.com/a/46026230, Posted by desautelsj, Retrieved 2026-06-14, License - CC BY-SA 4.0 diff --git a/Shared/General/ConcurrentList.cs b/Shared/General/ConcurrentList.cs index 371fdc2..e0d045d 100644 --- a/Shared/General/ConcurrentList.cs +++ b/Shared/General/ConcurrentList.cs @@ -1,4 +1,4 @@ -namespace MeloongCore; +namespace MeloongCore; /// /// 使用粗粒度锁的线程安全 实现。 diff --git a/Shared/General/Logger.cs b/Shared/General/Logger.cs index c759d5a..456ceac 100644 --- a/Shared/General/Logger.cs +++ b/Shared/General/Logger.cs @@ -1,4 +1,4 @@ -using System.Diagnostics; +using System.Diagnostics; namespace MeloongCore; diff --git a/Shared/General/OneOf.cs b/Shared/General/OneOf.cs index 20a1442..1333bbf 100644 --- a/Shared/General/OneOf.cs +++ b/Shared/General/OneOf.cs @@ -1,4 +1,4 @@ -namespace MeloongCore; +namespace MeloongCore; public readonly struct OneOf { private readonly int _index = -1; // -1 表示未初始化(这是一个 struct,所以这可以让默认值不为 0) private readonly T0? _value0; diff --git a/Shared/General/ValueRange.cs b/Shared/General/ValueRange.cs index 42d1ed7..50fbc50 100644 --- a/Shared/General/ValueRange.cs +++ b/Shared/General/ValueRange.cs @@ -1,4 +1,4 @@ -namespace MeloongCore; +namespace MeloongCore; /// /// 表示一个由可选下界和可选上界组成的范围。 diff --git a/Shared/Main.cs b/Shared/Main.cs index f0e8e7d..8bfcf4d 100644 --- a/Shared/Main.cs +++ b/Shared/Main.cs @@ -1,4 +1,4 @@ -namespace MeloongCore; +namespace MeloongCore; public static class Main { public static string AppName = "Meloong"; diff --git a/Shared/Utils/DirectoryUtils.cs b/Shared/Utils/DirectoryUtils.cs index bc0d8d5..1949afc 100644 --- a/Shared/Utils/DirectoryUtils.cs +++ b/Shared/Utils/DirectoryUtils.cs @@ -1,4 +1,4 @@ -namespace MeloongCore; +namespace MeloongCore; public static class DirectoryUtils { /// diff --git a/Shared/Utils/EnumUtils.cs b/Shared/Utils/EnumUtils.cs index 4fa5cf4..20c4584 100644 --- a/Shared/Utils/EnumUtils.cs +++ b/Shared/Utils/EnumUtils.cs @@ -1,4 +1,4 @@ -using System.Globalization; +using System.Globalization; namespace MeloongCore; public static class EnumUtils { diff --git a/Shared/Utils/FileUtils.cs b/Shared/Utils/FileUtils.cs index 8655e45..588475c 100644 --- a/Shared/Utils/FileUtils.cs +++ b/Shared/Utils/FileUtils.cs @@ -1,4 +1,4 @@ -using Newtonsoft.Json.Linq; +using Newtonsoft.Json.Linq; using System.IO.Compression; namespace MeloongCore; diff --git a/Shared/Utils/MathUtils.cs b/Shared/Utils/MathUtils.cs index e4fbd25..f115b48 100644 --- a/Shared/Utils/MathUtils.cs +++ b/Shared/Utils/MathUtils.cs @@ -1,4 +1,4 @@ -using System.Numerics; +using System.Numerics; namespace MeloongCore; public static class MathUtils { diff --git a/Shared/Utils/PathUtils.cs b/Shared/Utils/PathUtils.cs index 2e241ac..0616003 100644 --- a/Shared/Utils/PathUtils.cs +++ b/Shared/Utils/PathUtils.cs @@ -1,4 +1,4 @@ -namespace MeloongCore; +namespace MeloongCore; public static class PathUtils { #region 分隔符 diff --git a/Shared/Utils/ResilientUtils.cs b/Shared/Utils/ResilientUtils.cs index 220afab..cbeeda4 100644 --- a/Shared/Utils/ResilientUtils.cs +++ b/Shared/Utils/ResilientUtils.cs @@ -1,4 +1,4 @@ -namespace MeloongCore; +namespace MeloongCore; public static class ResilientUtils { /// diff --git a/Shared/Utils/StringUtils.cs b/Shared/Utils/StringUtils.cs index 8b3e909..e813fb2 100644 --- a/Shared/Utils/StringUtils.cs +++ b/Shared/Utils/StringUtils.cs @@ -1,4 +1,4 @@ -using System.Text.RegularExpressions; +using System.Text.RegularExpressions; namespace MeloongCore; public static class StringUtils { diff --git a/Shared/Utils/TaskUtils.cs b/Shared/Utils/TaskUtils.cs index c6e2967..b9122d4 100644 --- a/Shared/Utils/TaskUtils.cs +++ b/Shared/Utils/TaskUtils.cs @@ -1,4 +1,4 @@ -using System.Diagnostics; +using System.Diagnostics; namespace MeloongCore; public static class TaskUtils { diff --git a/Shared/Utils/WebUtils.cs b/Shared/Utils/WebUtils.cs index cb983e0..0ef4ffd 100644 --- a/Shared/Utils/WebUtils.cs +++ b/Shared/Utils/WebUtils.cs @@ -1,4 +1,4 @@ -namespace MeloongCore; +namespace MeloongCore; /// /// 当 HTTP 请求的状态码不指示成功时引发的异常。 diff --git a/Tests/MeloongCore.Tests.csproj b/Tests/MeloongCore.Tests.csproj index 60c3fc8..1af3f18 100644 --- a/Tests/MeloongCore.Tests.csproj +++ b/Tests/MeloongCore.Tests.csproj @@ -1,4 +1,4 @@ - + net48 diff --git a/Tests/TestUtils.cs b/Tests/TestUtils.cs index 3d312fb..e3ec3eb 100644 --- a/Tests/TestUtils.cs +++ b/Tests/TestUtils.cs @@ -1,4 +1,4 @@ -namespace MeloongCore.Tests; +namespace MeloongCore.Tests; /// /// 所有测试的基类。 diff --git a/Tests/Utils/PathUtilsTest.cs b/Tests/Utils/PathUtilsTest.cs index 70d86dd..d622fec 100644 --- a/Tests/Utils/PathUtilsTest.cs +++ b/Tests/Utils/PathUtilsTest.cs @@ -1,4 +1,4 @@ -namespace MeloongCore.Tests; +namespace MeloongCore.Tests; public class PathUtilsTests : TestBase { #region 路径处理 diff --git a/Wpf/Extensions/WpfExtensions.cs b/Wpf/Extensions/WpfExtensions.cs index ff5c11f..db2db4b 100644 --- a/Wpf/Extensions/WpfExtensions.cs +++ b/Wpf/Extensions/WpfExtensions.cs @@ -1,4 +1,4 @@ -using System.Windows.Controls; +using System.Windows.Controls; namespace MeloongCore.Wpf.Extensions; public static class WpfExtensions { diff --git a/Wpf/General/ValueConverters.cs b/Wpf/General/ValueConverters.cs index a8f98f6..cd7259d 100644 --- a/Wpf/General/ValueConverters.cs +++ b/Wpf/General/ValueConverters.cs @@ -1,4 +1,4 @@ -using System.Globalization; +using System.Globalization; using System.Windows; using System.Windows.Data; diff --git a/Wpf/Main.cs b/Wpf/Main.cs index ffc9a02..6c27753 100644 --- a/Wpf/Main.cs +++ b/Wpf/Main.cs @@ -1,4 +1,4 @@ -namespace MeloongCore.Wpf; +namespace MeloongCore.Wpf; public static class Main { public static void Init() { diff --git a/Wpf/MeloongCore.Wpf.csproj b/Wpf/MeloongCore.Wpf.csproj index abbd303..9336c4a 100644 --- a/Wpf/MeloongCore.Wpf.csproj +++ b/Wpf/MeloongCore.Wpf.csproj @@ -1,4 +1,4 @@ - + net48 diff --git a/Wpf/Utils/SystemUtils.cs b/Wpf/Utils/SystemUtils.cs index 01c9d1b..0a072e4 100644 --- a/Wpf/Utils/SystemUtils.cs +++ b/Wpf/Utils/SystemUtils.cs @@ -1,4 +1,4 @@ -using System.Security.Principal; +using System.Security.Principal; namespace MeloongCore; public static class SystemUtils {