zxl
/
CTT
forked from Cal/CTT
1
0
Fork 0
CTT/Unity/Assets/Hotfix/Logic/Behaviour/Game/Helper/StringHelper.cs

20 lines
410 B
C#
Raw Normal View History

2021-04-08 20:09:59 +08:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ET
{
public static class StringUtil
{
2021-04-15 00:12:07 +08:00
public static bool IsNullOrEmpty(this string obj)
2021-04-08 20:09:59 +08:00
{
2021-04-15 00:12:07 +08:00
if (obj == null || string.IsNullOrEmpty(obj) || string.IsNullOrWhiteSpace(obj))
2021-04-08 20:09:59 +08:00
return true;
return false;
}
}
}