2022-05-20 15:39:52 +08:00
|
|
|
|
namespace GeekDesk.Util
|
2021-07-13 15:24:05 +08:00
|
|
|
|
{
|
2022-05-20 15:39:52 +08:00
|
|
|
|
public class StringUtil
|
2021-07-13 15:24:05 +08:00
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-07-20 17:30:12 +08:00
|
|
|
|
public static bool IsEmpty(object str)
|
2021-07-13 15:24:05 +08:00
|
|
|
|
{
|
2021-07-20 17:30:12 +08:00
|
|
|
|
if (str == null || str.ToString().Length == 0 || str.ToString().Trim().Length == 0)
|
2021-07-13 15:24:05 +08:00
|
|
|
|
{
|
|
|
|
|
|
return true;
|
|
|
|
|
|
}
|
|
|
|
|
|
return false;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|