Str.cs 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. //************************************************************************
  2. // author: yuzhengyang
  3. // date: 2018.3.27 - 2018.6.3
  4. // desc: 工具描述
  5. // Copyright (c) yuzhengyang. All rights reserved.
  6. //************************************************************************
  7. using System;
  8. using System.Collections.Generic;
  9. using System.Linq;
  10. using System.Text;
  11. namespace Azylee.Core.DataUtils.StringUtils
  12. {
  13. public static class Str
  14. {
  15. /// <summary>
  16. /// 判断字符串 非null、""、空格(Not NullOrWhiteSpace)
  17. /// </summary>
  18. /// <param name="s"></param>
  19. /// <returns></returns>
  20. public static bool Ok(string s)
  21. {
  22. return StringTool.Ok(s);
  23. }
  24. /// <summary>
  25. /// 判断字符串 非null、""(Not NullOrEmpty)
  26. /// </summary>
  27. /// <param name="s"></param>
  28. /// <returns></returns>
  29. public static bool Ok2(string s)
  30. {
  31. return StringTool.Ok2(s);
  32. }
  33. }
  34. }