mirror of
https://github.com/ConjureETS/Unity_Utils.git
synced 2026-03-24 04:50:58 +00:00
15 lines
447 B
C#
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);
|
|
}
|
|
} |