统一编码

This commit is contained in:
龙腾猫跃 committed 2026-06-23 22:33:22 +08:00
1 parent 8e87d13d76
commit 1a639fa88f
26 files changed
+26 -26

No files matched your search

+1 -1
View File
@@ -1,4 +1,4 @@
namespace MeloongCore.Extensions;
namespace MeloongCore.Extensions;
public static class EnumerableExtensions {
#region 去重
+1 -1
View File
@@ -1,4 +1,4 @@
using System.Net.Sockets;
using System.Net.Sockets;
namespace MeloongCore.Extensions;
public static class ExceptionExtensions {
+1 -1
View File
@@ -1,4 +1,4 @@
using System.Text.RegularExpressions;
using System.Text.RegularExpressions;
namespace MeloongCore.Extensions;
public static class StringExtensions {
+1 -1
View File
@@ -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
View File
@@ -1,4 +1,4 @@
namespace MeloongCore;
namespace MeloongCore;
/// <summary>
/// 使用粗粒度锁的线程安全 <see cref="List{T}"/> 实现。
+1 -1
View File
@@ -1,4 +1,4 @@
using System.Diagnostics;
using System.Diagnostics;
namespace MeloongCore;
+1 -1
View File
@@ -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
View File
@@ -1,4 +1,4 @@
namespace MeloongCore;
namespace MeloongCore;
/// <summary>
/// 表示一个由可选下界和可选上界组成的范围。
+1 -1
View File
@@ -1,4 +1,4 @@
namespace MeloongCore;
namespace MeloongCore;
public static class Main {
public static string AppName = "Meloong";
+1 -1
View File
@@ -1,4 +1,4 @@
namespace MeloongCore;
namespace MeloongCore;
public static class DirectoryUtils {
/// <summary>
+1 -1
View File
@@ -1,4 +1,4 @@
using System.Globalization;
using System.Globalization;
namespace MeloongCore;
public static class EnumUtils {
+1 -1
View File
@@ -1,4 +1,4 @@
using Newtonsoft.Json.Linq;
using Newtonsoft.Json.Linq;
using System.IO.Compression;
namespace MeloongCore;
+1 -1
View File
@@ -1,4 +1,4 @@
using System.Numerics;
using System.Numerics;
namespace MeloongCore;
public static class MathUtils {
+1 -1
View File
@@ -1,4 +1,4 @@
namespace MeloongCore;
namespace MeloongCore;
public static class PathUtils {
#region 分隔符
+1 -1
View File
@@ -1,4 +1,4 @@
namespace MeloongCore;
namespace MeloongCore;
public static class ResilientUtils {
/// <summary>
+1 -1
View File
@@ -1,4 +1,4 @@
using System.Text.RegularExpressions;
using System.Text.RegularExpressions;
namespace MeloongCore;
public static class StringUtils {
+1 -1
View File
@@ -1,4 +1,4 @@
using System.Diagnostics;
using System.Diagnostics;
namespace MeloongCore;
public static class TaskUtils {
+1 -1
View File
@@ -1,4 +1,4 @@
namespace MeloongCore;
namespace MeloongCore;
/// <summary>
/// 当 HTTP 请求的状态码不指示成功时引发的异常。
+1 -1
View File
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net48</TargetFramework>
+1 -1
View File
@@ -1,4 +1,4 @@
namespace MeloongCore.Tests;
namespace MeloongCore.Tests;
/// <summary>
/// 所有测试的基类。
+1 -1
View File
@@ -1,4 +1,4 @@
namespace MeloongCore.Tests;
namespace MeloongCore.Tests;
public class PathUtilsTests : TestBase {
#region 路径处理
+1 -1
View File
@@ -1,4 +1,4 @@
using System.Windows.Controls;
using System.Windows.Controls;
namespace MeloongCore.Wpf.Extensions;
public static class WpfExtensions {
+1 -1
View File
@@ -1,4 +1,4 @@
using System.Globalization;
using System.Globalization;
using System.Windows;
using System.Windows.Data;
+1 -1
View File
@@ -1,4 +1,4 @@
namespace MeloongCore.Wpf;
namespace MeloongCore.Wpf;
public static class Main {
public static void Init() {
+1 -1
View File
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net48</TargetFramework>
+1 -1
View File
@@ -1,4 +1,4 @@
using System.Security.Principal;
using System.Security.Principal;
namespace MeloongCore;
public static class SystemUtils {