Sanchime.Functional/Sanchime.Toolkits/Basic.cs

18 lines
387 B
C#

using System.Diagnostics;
namespace Sanchime.Toolkits;
public static class Basic
{
public static void WriteLine<T>(this T @this)
{
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);
}