Example #1
0
 public static IEnumerable<string> SplitAndTrim(this string stringToSplit, params char[] separator) =>
     stringToSplit?
     .Split(separator, StringSplitOptions.RemoveEmptyEntries)
     .Select(s => s.Trim()) ?? Enumerable.Empty<string>();
Example #2
0
 public static string[] FromDbString(this string tags)
 {
     return tags?.Split(new [] {separator}, StringSplitOptions.None).ToArray();
 }