Like this:
mystring.Split(new string[] { delimit }, StringSplitOptions.None);
For some reason, the only overloads of Split
that take a string take it as an array, along with a StringSplitOptions
.
I have no idea why there isn't a string.Split(params string[])
overload.