网页版推演服务器
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
553 B

using System.Diagnostics.CodeAnalysis;
using System.Diagnostics.Contracts;
namespace AX.WebDrillServer.Extensions
{
public static class StringExtensions
{
public static bool IsNullOrEmpty([NotNullWhen(false)] this string? str) =>
string.IsNullOrEmpty(str);
public static bool IsNullOrWhiteSpace([NotNullWhen(false)] this string? str) =>
string.IsNullOrWhiteSpace(str);
public static bool HasValue([NotNullWhen(false)] this string? str) =>
!string.IsNullOrWhiteSpace(str);
}
}