23 lines
435 B
C#
23 lines
435 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace GeekDesk.Util
|
|
{
|
|
public class StringUtil
|
|
{
|
|
|
|
|
|
public static bool IsEmpty(object str)
|
|
{
|
|
if (str == null || str.ToString().Length == 0 || str.ToString().Trim().Length == 0)
|
|
{
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
}
|
|
}
|