18 lines
368 B
C#
18 lines
368 B
C#
namespace BankContracts.Extensions;
|
|
|
|
/// <summary>
|
|
/// Класс расширение для string
|
|
/// </summary>
|
|
public static class StringExtension
|
|
{
|
|
public static bool IsEmpty(this string str)
|
|
{
|
|
return string.IsNullOrWhiteSpace(str);
|
|
}
|
|
|
|
public static bool IsGuid(this string str)
|
|
{
|
|
return Guid.TryParse(str, out _);
|
|
}
|
|
}
|