14 lines
364 B
C#
14 lines
364 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace CandyHouseContracts.Extensions;
|
|
|
|
public static class StringExtensions
|
|
{
|
|
public static bool IsEmpty(this string str) => string.IsNullOrWhiteSpace(str);
|
|
public static bool IsGuid(this string str) => Guid.TryParse(str, out _);
|
|
}
|