Extensions.NET35.cs 560 B

1234567891011121314151617181920212223242526
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. namespace Renci.SshNet.Common
  6. {
  7. public static class ExtensionsNET35
  8. {
  9. internal static bool IsNullOrWhiteSpace(this string s)
  10. {
  11. if (s == null)
  12. return true;
  13. for (var i = 0; i < s.Length; i++)
  14. {
  15. if (!char.IsWhiteSpace(s, i))
  16. {
  17. return false;
  18. }
  19. }
  20. return true;
  21. }
  22. }
  23. }