21 lines
406 B
C#
21 lines
406 B
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using System.Threading.Tasks;
|
|||
|
|
|||
|
namespace PipingHotContrast.Extensions;
|
|||
|
|
|||
|
public static class StringExtensions
|
|||
|
{
|
|||
|
public static bool IsEmpty(this string str)
|
|||
|
{
|
|||
|
return string.IsNullOrEmpty(str);
|
|||
|
}
|
|||
|
public static bool IsGuid(this string str)
|
|||
|
{
|
|||
|
return Guid.TryParse(str, out _);
|
|||
|
}
|
|||
|
}
|
|||
|
|