editorconfig and code cleanup

This commit is contained in:
2021-12-31 00:41:43 +03:00
parent a4d5df3fd6
commit 8f4fa3de6e
12 changed files with 249 additions and 40 deletions

View File

@@ -1,10 +1,10 @@
global using DTLib.Extensions;
global using DTLib.Filesystem;
global using System;
global using System;
global using System.Collections;
global using System.Collections.Generic;
global using System.Text;
global using System.Threading.Tasks;
global using DTLib.Extensions;
global using DTLib.Filesystem;
global using static DTLib.PublicLog;
namespace DTLib.Extensions;

View File

@@ -110,11 +110,11 @@ public static class StringConverter
public static List<string> SplitToList(this string s, char c, char quot)
{
List<string> output = new();
var list = s.SplitToList(c);
List<string> list = s.SplitToList(c);
bool q_open = false;
for (int i = 0; i < list.Count; i++)
{
var _s = list[i];
string _s = list[i];
if (q_open)
{
if (_s.EndsWith(quot))
@@ -147,7 +147,7 @@ public static class StringConverter
public static string AddZeroes<T>(this T number, int length)
{
var str = number.ToString();
string str = number.ToString();
return new string('0', str.Length - length) + str;
}
}