mirror of
				https://github.com/nsnail/ns-ext.git
				synced 2025-10-31 23:15:28 +08:00 
			
		
		
		
	style
This commit is contained in:
		| @@ -86,4 +86,4 @@ resharper_wrap_object_and_collection_initializer_style = chop_always | ||||
| [*.cs] | ||||
| indent_style = space | ||||
| indent_size = 4 | ||||
| tab_width = 4 | ||||
| tab_width = 4 | ||||
| @@ -1,4 +1,4 @@ | ||||
|  | ||||
|  | ||||
| Microsoft Visual Studio Solution File, Format Version 12.00 | ||||
| Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NSExt", "NSExt\NSExt.csproj", "{54814D1B-C587-4D90-A7BE-4BE1E170D5FC}" | ||||
| EndProject | ||||
| @@ -13,4 +13,4 @@ Global | ||||
| 		{54814D1B-C587-4D90-A7BE-4BE1E170D5FC}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||||
| 		{54814D1B-C587-4D90-A7BE-4BE1E170D5FC}.Release|Any CPU.Build.0 = Release|Any CPU | ||||
| 	EndGlobalSection | ||||
| EndGlobal | ||||
| EndGlobal | ||||
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							| @@ -1,4 +1,4 @@ | ||||
| namespace NSExt.Extensions; | ||||
| namespace NSExt.Extensions; | ||||
|  | ||||
| public static class ByteExtensions | ||||
| { | ||||
| @@ -34,8 +34,4 @@ public static class ByteExtensions | ||||
|     { | ||||
|         return me.HexDe(Encoding.UTF8); | ||||
|     } | ||||
| } | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
| } | ||||
| @@ -1,4 +1,4 @@ | ||||
| namespace NSExt.Extensions; | ||||
| namespace NSExt.Extensions; | ||||
|  | ||||
| public static class CharExtensions | ||||
| { | ||||
| @@ -21,12 +21,4 @@ public static class CharExtensions | ||||
|     { | ||||
|         return IsAsciiLetterOrDigit(me) || me is '+' or '/' or '='; | ||||
|     } | ||||
| } | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
| } | ||||
| @@ -1,4 +1,4 @@ | ||||
| // ReSharper disable UnusedMember.Global | ||||
| // ReSharper disable UnusedMember.Global | ||||
|  | ||||
| namespace NSExt.Extensions; | ||||
|  | ||||
| @@ -86,9 +86,4 @@ public static class DateTimeExtensions | ||||
|     { | ||||
|         return me.ToString("yyyyMMdd"); | ||||
|     } | ||||
| } | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
| } | ||||
| @@ -1,4 +1,4 @@ | ||||
| namespace NSExt.Extensions; | ||||
| namespace NSExt.Extensions; | ||||
|  | ||||
| public static class DbCommandExtensions | ||||
| { | ||||
| @@ -26,11 +26,4 @@ public static class DbCommandExtensions | ||||
|  | ||||
|         return sql; | ||||
|     } | ||||
| } | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
| } | ||||
| @@ -1,4 +1,4 @@ | ||||
| namespace NSExt.Extensions; | ||||
| namespace NSExt.Extensions; | ||||
|  | ||||
| public static class DecimalExtensions | ||||
| { | ||||
| @@ -13,12 +13,4 @@ public static class DecimalExtensions | ||||
|         var dec = Math.Round(me, place); | ||||
|         return dec; | ||||
|     } | ||||
| } | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
| } | ||||
| @@ -1,4 +1,4 @@ | ||||
| namespace NSExt.Extensions; | ||||
| namespace NSExt.Extensions; | ||||
|  | ||||
| public static class EnumExtensions | ||||
| { | ||||
| @@ -14,11 +14,4 @@ public static class EnumExtensions | ||||
|         var attrs = (DescriptionAttribute[])fi!.GetCustomAttributes(typeof(DescriptionAttribute), false); | ||||
|         return (attrs.Length != 0 ? attrs[0].Description : Enum.GetName(t, e)) ?? ""; | ||||
|     } | ||||
| } | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
| } | ||||
| @@ -1,4 +1,4 @@ | ||||
| namespace NSExt.Extensions; | ||||
| namespace NSExt.Extensions; | ||||
|  | ||||
| public static class EnumerableExtensions | ||||
| { | ||||
| @@ -23,11 +23,4 @@ public static class EnumerableExtensions | ||||
|     { | ||||
|         return me is null || !me.Any(); | ||||
|     } | ||||
| } | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
| } | ||||
| @@ -1,4 +1,4 @@ | ||||
| namespace NSExt.Extensions; | ||||
| namespace NSExt.Extensions; | ||||
|  | ||||
| public static class GenericExtensions | ||||
| { | ||||
| @@ -40,12 +40,4 @@ public static class GenericExtensions | ||||
|     { | ||||
|         return me.Equals(compare) ? ret : me; | ||||
|     } | ||||
| } | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
| } | ||||
| @@ -1,4 +1,4 @@ | ||||
| namespace NSExt.Extensions; | ||||
| namespace NSExt.Extensions; | ||||
|  | ||||
| public static class IntExtensions | ||||
| { | ||||
| @@ -33,11 +33,4 @@ public static class IntExtensions | ||||
|     { | ||||
|         return string.Join(".", BitConverter.GetBytes(me).Reverse()); | ||||
|     } | ||||
| } | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
| } | ||||
| @@ -1,4 +1,4 @@ | ||||
| using System.Text.Encodings.Web; | ||||
| using System.Text.Encodings.Web; | ||||
| using System.Text.Json; | ||||
| using System.Text.Json.Serialization; | ||||
|  | ||||
| @@ -18,8 +18,4 @@ public static class JsonSerializerOptionsExtensions | ||||
|             PropertyNameCaseInsensitive = true | ||||
|         }; | ||||
|     } | ||||
| } | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
| } | ||||
| @@ -1,4 +1,4 @@ | ||||
| // ReSharper disable TemplateIsNotCompileTimeConstantProblem | ||||
| // ReSharper disable TemplateIsNotCompileTimeConstantProblem | ||||
|  | ||||
| namespace NSExt.Extensions; | ||||
|  | ||||
| @@ -63,11 +63,4 @@ public static class LoggerExtensions | ||||
|     { | ||||
|         me.LogWarning(CallerInfoMessage(message, callerName, callerFilePath, callerLineNumber)); | ||||
|     } | ||||
| } | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
| } | ||||
| @@ -1,4 +1,4 @@ | ||||
| namespace NSExt.Extensions; | ||||
| namespace NSExt.Extensions; | ||||
|  | ||||
| public static class LongExtensions | ||||
| { | ||||
| @@ -24,12 +24,4 @@ public static class LongExtensions | ||||
|     { | ||||
|         return new DateTime(1970, 1, 1).AddMilliseconds(msFrom1970).ToLocalTime(); | ||||
|     } | ||||
| } | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
| } | ||||
| @@ -1,4 +1,4 @@ | ||||
| using System.Text.Json; | ||||
| using System.Text.Json; | ||||
|  | ||||
| namespace NSExt.Extensions; | ||||
|  | ||||
| @@ -18,9 +18,4 @@ public static class ObjectExtensions | ||||
|                                             PropertyNamingPolicy = JsonNamingPolicy.CamelCase | ||||
|                                         }); | ||||
|     } | ||||
| } | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
| } | ||||
| @@ -1,4 +1,4 @@ | ||||
| namespace NSExt.Extensions; | ||||
| namespace NSExt.Extensions; | ||||
|  | ||||
| public static class StreamExtensions | ||||
| { | ||||
| @@ -19,8 +19,4 @@ public static class StreamExtensions | ||||
|             0xff | ||||
|         }) < 0; | ||||
|     } | ||||
| } | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
| } | ||||
| @@ -1,4 +1,4 @@ | ||||
| // ReSharper disable UnusedMember.Global | ||||
| // ReSharper disable UnusedMember.Global | ||||
|  | ||||
|  | ||||
| using System.Security.Cryptography; | ||||
| @@ -569,8 +569,4 @@ public static class StringExtensions | ||||
|     { | ||||
|         return Uri.UnescapeDataString(me); | ||||
|     } | ||||
| } | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
| } | ||||
| @@ -1,4 +1,4 @@ | ||||
| namespace NSExt.Extensions; | ||||
| namespace NSExt.Extensions; | ||||
|  | ||||
| public static class TypeExtensions | ||||
| { | ||||
| @@ -16,8 +16,4 @@ public static class TypeExtensions | ||||
|                           .SelectMany(interfaceType => interfaceType.GetCustomAttributes(attributeType, true))) | ||||
|                  .Cast<T>(); | ||||
|     } | ||||
| } | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
| } | ||||
| @@ -1,4 +1,4 @@ | ||||
| namespace NSExt.Extensions; | ||||
| namespace NSExt.Extensions; | ||||
|  | ||||
| public static class UriExtensions | ||||
| { | ||||
| @@ -11,13 +11,4 @@ public static class UriExtensions | ||||
|     { | ||||
|         return "//" + me.Authority + me.PathAndQuery; | ||||
|     } | ||||
| } | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
| } | ||||
| @@ -1,4 +1,4 @@ | ||||
| global using System.Data; | ||||
| global using System.Data; | ||||
| global using System.Data.Common; | ||||
| global using System.Runtime.CompilerServices; | ||||
| global using Microsoft.Extensions.Logging; | ||||
| @@ -6,4 +6,4 @@ global using System.Globalization; | ||||
| global using System.Text; | ||||
| global using System.Text.RegularExpressions; | ||||
| global using System.Web; | ||||
| global using System.ComponentModel; | ||||
| global using System.ComponentModel; | ||||
| @@ -1 +0,0 @@ | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user