StringTool.cs 579 B

1234567891011121314151617181920212223
  1. //############################################################
  2. // https://github.com/yuzhengyang
  3. // author:yuzhengyang
  4. //############################################################
  5. using System;
  6. using System.Collections.Generic;
  7. using System.Text;
  8. namespace Y.Utils.DataUtils.StringUtils
  9. {
  10. public class StringTool
  11. {
  12. public static bool IsNullOrWhiteSpace(string str)
  13. {
  14. if (str == null)
  15. return true;
  16. if (str.Trim().Length == 0)
  17. return true;
  18. return false;
  19. }
  20. }
  21. }