split string by each character c# code example
Example 1: split with multiple delimiters c#
string [] split = strings.Split(new Char[] { ',', '\\', '\n' },
StringSplitOptions.RemoveEmptyEntries);
Example 2: c# convert split to list
using System.Linq; // <----- Required for .ToList()
listStrLineElements = line.Split(',').ToList();