split string every n characters c# code example
Example 1: c# split a string and return list
listStrLineElements = line.Split(',').ToList();
Example 2: c# split on multiple characters
string tests = "abc][rfd][5][,][.";
string[] reslts = tests.Split(new char[] { ']', '[' }, StringSplitOptions.RemoveEmptyEntries);