namespace MES.Service.util; public class StringUtil { /** * 判断字符串是否为空 * 为空时返回true */ public static bool IsNullOrEmpty(string? value) { return string.IsNullOrEmpty(value); } /** * 判断字符串是否为空 * 不为空时返回true */ public static bool IsNotNullOrEmpty(string? value) { return !string.IsNullOrEmpty(value); } }