统一编码
This commit is contained in:
1 parent
8e87d13d76
commit
1a639fa88f
26 files changed
+26
-26
No files matched your search
@@ -1,4 +1,4 @@
|
|||||||
namespace MeloongCore.Extensions;
|
namespace MeloongCore.Extensions;
|
||||||
public static class EnumerableExtensions {
|
public static class EnumerableExtensions {
|
||||||
|
|
||||||
#region 去重
|
#region 去重
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
using System.Net.Sockets;
|
using System.Net.Sockets;
|
||||||
|
|
||||||
namespace MeloongCore.Extensions;
|
namespace MeloongCore.Extensions;
|
||||||
public static class ExceptionExtensions {
|
public static class ExceptionExtensions {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
using System.Text.RegularExpressions;
|
using System.Text.RegularExpressions;
|
||||||
|
|
||||||
namespace MeloongCore.Extensions;
|
namespace MeloongCore.Extensions;
|
||||||
public static class StringExtensions {
|
public static class StringExtensions {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
namespace MeloongCore.Extensions;
|
namespace MeloongCore.Extensions;
|
||||||
public static class WebExtensions {
|
public static class WebExtensions {
|
||||||
|
|
||||||
// Source - https://stackoverflow.com/a/46026230, Posted by desautelsj, Retrieved 2026-06-14, License - CC BY-SA 4.0
|
// Source - https://stackoverflow.com/a/46026230, Posted by desautelsj, Retrieved 2026-06-14, License - CC BY-SA 4.0
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
namespace MeloongCore;
|
namespace MeloongCore;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 使用粗粒度锁的线程安全 <see cref="List{T}"/> 实现。
|
/// 使用粗粒度锁的线程安全 <see cref="List{T}"/> 实现。
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
|
|
||||||
namespace MeloongCore;
|
namespace MeloongCore;
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
namespace MeloongCore;
|
namespace MeloongCore;
|
||||||
public readonly struct OneOf<T0, T1> {
|
public readonly struct OneOf<T0, T1> {
|
||||||
private readonly int _index = -1; // -1 表示未初始化(这是一个 struct,所以这可以让默认值不为 0)
|
private readonly int _index = -1; // -1 表示未初始化(这是一个 struct,所以这可以让默认值不为 0)
|
||||||
private readonly T0? _value0;
|
private readonly T0? _value0;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
namespace MeloongCore;
|
namespace MeloongCore;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 表示一个由可选下界和可选上界组成的范围。
|
/// 表示一个由可选下界和可选上界组成的范围。
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
namespace MeloongCore;
|
namespace MeloongCore;
|
||||||
public static class Main {
|
public static class Main {
|
||||||
|
|
||||||
public static string AppName = "Meloong";
|
public static string AppName = "Meloong";
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
namespace MeloongCore;
|
namespace MeloongCore;
|
||||||
public static class DirectoryUtils {
|
public static class DirectoryUtils {
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
|
|
||||||
namespace MeloongCore;
|
namespace MeloongCore;
|
||||||
public static class EnumUtils {
|
public static class EnumUtils {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
using Newtonsoft.Json.Linq;
|
using Newtonsoft.Json.Linq;
|
||||||
using System.IO.Compression;
|
using System.IO.Compression;
|
||||||
|
|
||||||
namespace MeloongCore;
|
namespace MeloongCore;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
using System.Numerics;
|
using System.Numerics;
|
||||||
|
|
||||||
namespace MeloongCore;
|
namespace MeloongCore;
|
||||||
public static class MathUtils {
|
public static class MathUtils {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
namespace MeloongCore;
|
namespace MeloongCore;
|
||||||
public static class PathUtils {
|
public static class PathUtils {
|
||||||
|
|
||||||
#region 分隔符
|
#region 分隔符
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
namespace MeloongCore;
|
namespace MeloongCore;
|
||||||
public static class ResilientUtils {
|
public static class ResilientUtils {
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
using System.Text.RegularExpressions;
|
using System.Text.RegularExpressions;
|
||||||
|
|
||||||
namespace MeloongCore;
|
namespace MeloongCore;
|
||||||
public static class StringUtils {
|
public static class StringUtils {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
|
|
||||||
namespace MeloongCore;
|
namespace MeloongCore;
|
||||||
public static class TaskUtils {
|
public static class TaskUtils {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
namespace MeloongCore;
|
namespace MeloongCore;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 当 HTTP 请求的状态码不指示成功时引发的异常。
|
/// 当 HTTP 请求的状态码不指示成功时引发的异常。
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>net48</TargetFramework>
|
<TargetFramework>net48</TargetFramework>
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
namespace MeloongCore.Tests;
|
namespace MeloongCore.Tests;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 所有测试的基类。
|
/// 所有测试的基类。
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
namespace MeloongCore.Tests;
|
namespace MeloongCore.Tests;
|
||||||
public class PathUtilsTests : TestBase {
|
public class PathUtilsTests : TestBase {
|
||||||
|
|
||||||
#region 路径处理
|
#region 路径处理
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
using System.Windows.Controls;
|
using System.Windows.Controls;
|
||||||
|
|
||||||
namespace MeloongCore.Wpf.Extensions;
|
namespace MeloongCore.Wpf.Extensions;
|
||||||
public static class WpfExtensions {
|
public static class WpfExtensions {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
using System.Windows;
|
using System.Windows;
|
||||||
using System.Windows.Data;
|
using System.Windows.Data;
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
namespace MeloongCore.Wpf;
|
namespace MeloongCore.Wpf;
|
||||||
public static class Main {
|
public static class Main {
|
||||||
|
|
||||||
public static void Init() {
|
public static void Init() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>net48</TargetFramework>
|
<TargetFramework>net48</TargetFramework>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
using System.Security.Principal;
|
using System.Security.Principal;
|
||||||
|
|
||||||
namespace MeloongCore;
|
namespace MeloongCore;
|
||||||
public static class SystemUtils {
|
public static class SystemUtils {
|
||||||
|
|||||||
Reference in new issue
Block a user