This commit is contained in:
Sanchime 2022-05-08 14:58:20 +08:00
parent 2317a58f39
commit 9ade9ffa37
2 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,17 @@
namespace Sanchime.Toolkits;
public static class Basic
{
public static void WriteLine<T>(this T @this)
{
System.Console.WriteLine(@this);
}
public static void WriteLine<T>(this T @this, Func<T, T> func)
=> func(@this).WriteLine();
public static bool IsNullOrEmpty<T>(this string @this)
=> string.IsNullOrEmpty(@this);
}

View File

@ -0,0 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>