判断字符串是否为null或空串
// Check if it is empty string
public static bool IsEmptyString(string str)
{
if (str == null)
{
return true;
}
if (str.Trim().Length == 0)
{
return true;
}
return false;
}
浙公网安备 33010602011771号