public static boolean IsNullOrEmpty(String value) {
return (value == null || value.length() == 0);
}

public static boolean IsNullOrWhiteSpace(String value) {
if (value == null) return true;

return (value.trim().length() == 0);
}

相关文章:

  • 2021-06-22
  • 2021-05-25
  • 2021-12-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-16
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-06-11
  • 2021-07-28
  • 2022-12-23
  • 2021-07-10
  • 2022-12-23
相关资源
相似解决方案