2025-02-13 13:07:31 +04:00

15 lines
300 B
C#

namespace TwoFromTheCaseContracts.Extensions;
public static class StringExtensions
{
public static bool IsEmpty(this string str)
{
return string.IsNullOrWhiteSpace(str);
}
public static bool IsGuid(this string str)
{
return Guid.TryParse(str, out _);
}
}