You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
551 B

  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. namespace Net3_Proxy
  6. {
  7. internal static class Utils
  8. {
  9. public static bool IsNullOrWhiteSpace(string value)
  10. {
  11. if (value == null)
  12. {
  13. return true;
  14. }
  15. for (int i = 0; i < value.Length; i++)
  16. {
  17. if (!char.IsWhiteSpace(value[i]))
  18. {
  19. return false;
  20. }
  21. }
  22. return true;
  23. }
  24. }
  25. }