Ver código fonte

统一编码

龙腾猫跃 4 meses atrás
pai
commit
1a639fa88f

+ 1 - 1
Shared/Extensions/EnumerableExtensions.cs

@@ -1,4 +1,4 @@
-namespace MeloongCore.Extensions;
+namespace MeloongCore.Extensions;
 public static class EnumerableExtensions {
 
     #region 去重

+ 1 - 1
Shared/Extensions/ExceptionExtensions.cs

@@ -1,4 +1,4 @@
-using System.Net.Sockets;
+using System.Net.Sockets;
 
 namespace MeloongCore.Extensions;
 public static class ExceptionExtensions {

+ 1 - 1
Shared/Extensions/StringExtensions.cs

@@ -1,4 +1,4 @@
-using System.Text.RegularExpressions;
+using System.Text.RegularExpressions;
 
 namespace MeloongCore.Extensions;
 public static class StringExtensions {

+ 1 - 1
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

+ 1 - 1
Shared/General/ConcurrentList.cs

@@ -1,4 +1,4 @@
-namespace MeloongCore;
+namespace MeloongCore;
 
 /// <summary>
 /// 使用粗粒度锁的线程安全 <see cref="List{T}"/> 实现。

+ 1 - 1
Shared/General/Logger.cs

@@ -1,4 +1,4 @@
-using System.Diagnostics;
+using System.Diagnostics;
 
 namespace MeloongCore;
 

+ 1 - 1
Shared/General/OneOf.cs

@@ -1,4 +1,4 @@
-namespace MeloongCore;
+namespace MeloongCore;
 public readonly struct OneOf<T0, T1> {
     private readonly int _index = -1; // -1 表示未初始化(这是一个 struct,所以这可以让默认值不为 0)
     private readonly T0? _value0;

+ 1 - 1
Shared/General/ValueRange.cs

@@ -1,4 +1,4 @@
-namespace MeloongCore;
+namespace MeloongCore;
 
 /// <summary>
 /// 表示一个由可选下界和可选上界组成的范围。

+ 1 - 1
Shared/Main.cs

@@ -1,4 +1,4 @@
-namespace MeloongCore;
+namespace MeloongCore;
 public static class Main {
 
     public static string AppName = "Meloong";

+ 1 - 1
Shared/Utils/DirectoryUtils.cs

@@ -1,4 +1,4 @@
-namespace MeloongCore;
+namespace MeloongCore;
 public static class DirectoryUtils {
 
     /// <summary>

+ 1 - 1
Shared/Utils/EnumUtils.cs

@@ -1,4 +1,4 @@
-using System.Globalization;
+using System.Globalization;
 
 namespace MeloongCore;
 public static class EnumUtils {

+ 1 - 1
Shared/Utils/FileUtils.cs

@@ -1,4 +1,4 @@
-using Newtonsoft.Json.Linq;
+using Newtonsoft.Json.Linq;
 using System.IO.Compression;
 
 namespace MeloongCore;

+ 1 - 1
Shared/Utils/MathUtils.cs

@@ -1,4 +1,4 @@
-using System.Numerics;
+using System.Numerics;
 
 namespace MeloongCore;
 public static class MathUtils {

+ 1 - 1
Shared/Utils/PathUtils.cs

@@ -1,4 +1,4 @@
-namespace MeloongCore;
+namespace MeloongCore;
 public static class PathUtils {
 
     #region 分隔符

+ 1 - 1
Shared/Utils/ResilientUtils.cs

@@ -1,4 +1,4 @@
-namespace MeloongCore;
+namespace MeloongCore;
 public static class ResilientUtils {
 
     /// <summary>

+ 1 - 1
Shared/Utils/StringUtils.cs

@@ -1,4 +1,4 @@
-using System.Text.RegularExpressions;
+using System.Text.RegularExpressions;
 
 namespace MeloongCore;
 public static class StringUtils {

+ 1 - 1
Shared/Utils/TaskUtils.cs

@@ -1,4 +1,4 @@
-using System.Diagnostics;
+using System.Diagnostics;
 
 namespace MeloongCore;
 public static class TaskUtils {

+ 1 - 1
Shared/Utils/WebUtils.cs

@@ -1,4 +1,4 @@
-namespace MeloongCore;
+namespace MeloongCore;
 
 /// <summary>
 /// 当 HTTP 请求的状态码不指示成功时引发的异常。

+ 1 - 1
Tests/MeloongCore.Tests.csproj

@@ -1,4 +1,4 @@
-<Project Sdk="Microsoft.NET.Sdk">
+<Project Sdk="Microsoft.NET.Sdk">
 
 	<PropertyGroup>
 		<TargetFramework>net48</TargetFramework>

+ 1 - 1
Tests/TestUtils.cs

@@ -1,4 +1,4 @@
-namespace MeloongCore.Tests;
+namespace MeloongCore.Tests;
 
 /// <summary>
 /// 所有测试的基类。

+ 1 - 1
Tests/Utils/PathUtilsTest.cs

@@ -1,4 +1,4 @@
-namespace MeloongCore.Tests;
+namespace MeloongCore.Tests;
 public class PathUtilsTests : TestBase {
 
     #region 路径处理

+ 1 - 1
Wpf/Extensions/WpfExtensions.cs

@@ -1,4 +1,4 @@
-using System.Windows.Controls;
+using System.Windows.Controls;
 
 namespace MeloongCore.Wpf.Extensions;
 public static class WpfExtensions {

+ 1 - 1
Wpf/General/ValueConverters.cs

@@ -1,4 +1,4 @@
-using System.Globalization;
+using System.Globalization;
 using System.Windows;
 using System.Windows.Data;
 

+ 1 - 1
Wpf/Main.cs

@@ -1,4 +1,4 @@
-namespace MeloongCore.Wpf;
+namespace MeloongCore.Wpf;
 public static class Main {
 
     public static void Init() {

+ 1 - 1
Wpf/MeloongCore.Wpf.csproj

@@ -1,4 +1,4 @@
-<Project Sdk="Microsoft.NET.Sdk">
+<Project Sdk="Microsoft.NET.Sdk">
 
 	<PropertyGroup>
 		<TargetFramework>net48</TargetFramework>

+ 1 - 1
Wpf/Utils/SystemUtils.cs

@@ -1,4 +1,4 @@
-using System.Security.Principal;
+using System.Security.Principal;
 
 namespace MeloongCore;
 public static class SystemUtils {