small changes

This commit is contained in:
2022-01-14 00:04:06 +03:00
parent 54d9a43e75
commit 97269fd160
11 changed files with 55 additions and 69 deletions

View File

@@ -1,6 +1,7 @@
global using System;
global using System.Collections;
global using System.Collections.Generic;
global using System.Linq;
global using System.Text;
global using System.Threading.Tasks;
global using DTLib.Extensions;

View File

@@ -144,10 +144,4 @@ public static class StringConverter
if (max * length != s.Length) parts.Add(s.Substring(max * length, s.Length - max * length));
return parts;
}
public static string AddZeroes<T>(this T number, int length)
{
string str = number.ToString();
return new string('0', str.Length - length) + str;
}
}