StringExtensionMethod.cs 480 B

12345678910111213141516
  1. using System.Collections.Generic;
  2. namespace VCommon
  3. {
  4. public static class StringExtensionMethod
  5. {
  6. public static string JoinString<T>(this IEnumerable<T> items, string separator = "")
  7. => string.Join(separator, items);
  8. public static bool IsNullOrEmpty(this string source)
  9. => string.IsNullOrEmpty(source);
  10. public static bool IsNullOrWhiteSpace(this string source)
  11. => string.IsNullOrWhiteSpace(source);
  12. }
  13. }