You can specify how many substrings to return using string.Split
:
var pieces = myString.Split(new[] { ',' }, 2);
Returns:
101
a,b,c,d
You can specify how many substrings to return using string.Split
:
var pieces = myString.Split(new[] { ',' }, 2);
Returns:
101
a,b,c,d