Question How to split two or more Chars from text and put it on List

dani

New member
Joined
Jul 8, 2014
Messages
1
Programming Experience
Beginner
I am using this code that splits me word which is in 7 positions of # chars. For example, I have this string: A#B#C#D#E#F##G##..., so string that I will split is "G".

C#:
List<string> destinacije = new List<string>();


matchingSpremenljivke.ForEach(m =>
{
   destinacije.Add(m.Data.Split('#')[7]);
});

Now my question is how to split another word, which is splited by another char (e.g. ",") and put it in same list: "destinacije"

Realy thanks for answer.
 
Back
Top Bottom