I have a method like this
public static List<string> ToList(this string str)
{
return str.Split(',').ToList();
}
I want to know if I can keep the 1-line beauty and also check if the item in the split is actually a string without any whitespaces or a whitespace itself, so basically if its a solid word without and spaces.