15 lines
290 B
C#
15 lines
290 B
C#
|
namespace TheCyclopsContracts.Extensions;
|
|||
|
|
|||
|
public static class StringExtension
|
|||
|
{
|
|||
|
public static bool IsEmpty(this string str)
|
|||
|
{
|
|||
|
return string.IsNullOrEmpty(str);
|
|||
|
}
|
|||
|
|
|||
|
public static bool IsGuid(this string str)
|
|||
|
{
|
|||
|
return Guid.TryParse(str, out _);
|
|||
|
}
|
|||
|
}
|