I need to often convert a \"string block\" (a string containing return characters, e.g. from a file or a TextBox) into List
List
ou can use RegEx.Split to split directly using the Enviroment.NewLine.
public static List ConvertBlockToLines(this string block) { return Regex.Split(block, Environment.NewLine).ToList(); }