2023-03-17 23:41:38 -04:00

15 lines
447 B
C#

namespace JohnsonUtils.Utilities
{
public static class StringExtensions
{
public static string Capitalize(this string input) =>
input switch
{
null => string.Empty,
"" => string.Empty,
_ => input[0].ToString().ToUpper() + input.Substring(1)
};
public static bool IsNullOrEmpty(this string input) => string.IsNullOrEmpty(input);
}
}