I am new to c# and I don\'t understand why this isn\'t working. I want to split a previously splitted string.
My code is the following:
int i; string
As others have said, Split returns an array. However, you can split on more than one character at a time. For example,
Split
string s = "a,b,c,d-d"; var split = s.Split(new[] {',', '-'});
In this case, the split array would contain 5 indices, containing "a", "b", "c", "d", and "d".
split