I have a string like below
string str = "ABE,1A2B3CD,1B2A3C,1A2BC3E";
How can i split this string and set it to the list like below?
List<string> lst = new List<string>();
lst[0] = "A";
lst[1] = "B";
lst[2] = "E";
lst[3] = "1A2B3CD";
lst[4] = "1B2A3C";
lst[5] = "1A2BC3E";
Try with this:
I assumed that you need to split every string delimited by a comma and, for the first only, every single char…