This commit is contained in:
nsnail 2022-11-29 18:00:52 +08:00
parent a61d057c76
commit fdaf7518c6
26 changed files with 40 additions and 151 deletions

View File

@ -1 +0,0 @@

View File

@ -1 +0,0 @@

View File

@ -1 +0,0 @@

View File

@ -1 +0,0 @@

View File

@ -1,4 +1,4 @@

Microsoft Visual Studio Solution File, Format Version 12.00 Microsoft Visual Studio Solution File, Format Version 12.00
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NSExt", "NSExt\NSExt.csproj", "{54814D1B-C587-4D90-A7BE-4BE1E170D5FC}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NSExt", "NSExt\NSExt.csproj", "{54814D1B-C587-4D90-A7BE-4BE1E170D5FC}"
EndProject EndProject

File diff suppressed because one or more lines are too long

View File

@ -1,4 +1,4 @@
namespace NSExt.Extensions; namespace NSExt.Extensions;
public static class ByteExtensions public static class ByteExtensions
{ {
@ -35,7 +35,3 @@ public static class ByteExtensions
return me.HexDe(Encoding.UTF8); return me.HexDe(Encoding.UTF8);
} }
} }

View File

@ -1,4 +1,4 @@
namespace NSExt.Extensions; namespace NSExt.Extensions;
public static class CharExtensions public static class CharExtensions
{ {
@ -22,11 +22,3 @@ public static class CharExtensions
return IsAsciiLetterOrDigit(me) || me is '+' or '/' or '='; return IsAsciiLetterOrDigit(me) || me is '+' or '/' or '=';
} }
} }

View File

@ -1,4 +1,4 @@
// ReSharper disable UnusedMember.Global // ReSharper disable UnusedMember.Global
namespace NSExt.Extensions; namespace NSExt.Extensions;
@ -87,8 +87,3 @@ public static class DateTimeExtensions
return me.ToString("yyyyMMdd"); return me.ToString("yyyyMMdd");
} }
} }

View File

@ -1,4 +1,4 @@
namespace NSExt.Extensions; namespace NSExt.Extensions;
public static class DbCommandExtensions public static class DbCommandExtensions
{ {
@ -27,10 +27,3 @@ public static class DbCommandExtensions
return sql; return sql;
} }
} }

View File

@ -1,4 +1,4 @@
namespace NSExt.Extensions; namespace NSExt.Extensions;
public static class DecimalExtensions public static class DecimalExtensions
{ {
@ -14,11 +14,3 @@ public static class DecimalExtensions
return dec; return dec;
} }
} }

View File

@ -1,4 +1,4 @@
namespace NSExt.Extensions; namespace NSExt.Extensions;
public static class EnumExtensions public static class EnumExtensions
{ {
@ -15,10 +15,3 @@ public static class EnumExtensions
return (attrs.Length != 0 ? attrs[0].Description : Enum.GetName(t, e)) ?? ""; return (attrs.Length != 0 ? attrs[0].Description : Enum.GetName(t, e)) ?? "";
} }
} }

View File

@ -1,4 +1,4 @@
namespace NSExt.Extensions; namespace NSExt.Extensions;
public static class EnumerableExtensions public static class EnumerableExtensions
{ {
@ -24,10 +24,3 @@ public static class EnumerableExtensions
return me is null || !me.Any(); return me is null || !me.Any();
} }
} }

View File

@ -1,4 +1,4 @@
namespace NSExt.Extensions; namespace NSExt.Extensions;
public static class GenericExtensions public static class GenericExtensions
{ {
@ -41,11 +41,3 @@ public static class GenericExtensions
return me.Equals(compare) ? ret : me; return me.Equals(compare) ? ret : me;
} }
} }

View File

@ -1,4 +1,4 @@
namespace NSExt.Extensions; namespace NSExt.Extensions;
public static class IntExtensions public static class IntExtensions
{ {
@ -34,10 +34,3 @@ public static class IntExtensions
return string.Join(".", BitConverter.GetBytes(me).Reverse()); return string.Join(".", BitConverter.GetBytes(me).Reverse());
} }
} }

View File

@ -1,4 +1,4 @@
using System.Text.Encodings.Web; using System.Text.Encodings.Web;
using System.Text.Json; using System.Text.Json;
using System.Text.Json.Serialization; using System.Text.Json.Serialization;
@ -19,7 +19,3 @@ public static class JsonSerializerOptionsExtensions
}; };
} }
} }

View File

@ -1,4 +1,4 @@
// ReSharper disable TemplateIsNotCompileTimeConstantProblem // ReSharper disable TemplateIsNotCompileTimeConstantProblem
namespace NSExt.Extensions; namespace NSExt.Extensions;
@ -64,10 +64,3 @@ public static class LoggerExtensions
me.LogWarning(CallerInfoMessage(message, callerName, callerFilePath, callerLineNumber)); me.LogWarning(CallerInfoMessage(message, callerName, callerFilePath, callerLineNumber));
} }
} }

View File

@ -1,4 +1,4 @@
namespace NSExt.Extensions; namespace NSExt.Extensions;
public static class LongExtensions public static class LongExtensions
{ {
@ -25,11 +25,3 @@ public static class LongExtensions
return new DateTime(1970, 1, 1).AddMilliseconds(msFrom1970).ToLocalTime(); return new DateTime(1970, 1, 1).AddMilliseconds(msFrom1970).ToLocalTime();
} }
} }

View File

@ -1,4 +1,4 @@
using System.Text.Json; using System.Text.Json;
namespace NSExt.Extensions; namespace NSExt.Extensions;
@ -19,8 +19,3 @@ public static class ObjectExtensions
}); });
} }
} }

View File

@ -1,4 +1,4 @@
namespace NSExt.Extensions; namespace NSExt.Extensions;
public static class StreamExtensions public static class StreamExtensions
{ {
@ -20,7 +20,3 @@ public static class StreamExtensions
}) < 0; }) < 0;
} }
} }

View File

@ -1,4 +1,4 @@
// ReSharper disable UnusedMember.Global // ReSharper disable UnusedMember.Global
using System.Security.Cryptography; using System.Security.Cryptography;
@ -570,7 +570,3 @@ public static class StringExtensions
return Uri.UnescapeDataString(me); return Uri.UnescapeDataString(me);
} }
} }

View File

@ -1,4 +1,4 @@
namespace NSExt.Extensions; namespace NSExt.Extensions;
public static class TypeExtensions public static class TypeExtensions
{ {
@ -17,7 +17,3 @@ public static class TypeExtensions
.Cast<T>(); .Cast<T>();
} }
} }

View File

@ -1,4 +1,4 @@
namespace NSExt.Extensions; namespace NSExt.Extensions;
public static class UriExtensions public static class UriExtensions
{ {
@ -12,12 +12,3 @@ public static class UriExtensions
return "//" + me.Authority + me.PathAndQuery; return "//" + me.Authority + me.PathAndQuery;
} }
} }

View File

@ -1,4 +1,4 @@
global using System.Data; global using System.Data;
global using System.Data.Common; global using System.Data.Common;
global using System.Runtime.CompilerServices; global using System.Runtime.CompilerServices;
global using Microsoft.Extensions.Logging; global using Microsoft.Extensions.Logging;

View File

@ -1 +0,0 @@