新框架接口代码(祈禧6月初版本)
南骏 池
3 天以前 f92912350e2ed8813a54f8da9c475bf02a9aa315
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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);
    }
 
    public static bool CheckGuid(Guid? guid)
    {
        if (guid == Guid.Empty)
            return false;
        return guid != null;
    }
}