If you just call:
string[] ssize = myStr.Split(null); //Or myStr.Split()
or:
string[] ssize = myStr.Split(new char[0]);
then white-space is assumed to be the splitting character. From the string.Split(char[])
method’s documentation page.
If the separator parameter is
null
or contains no characters, white-space characters are assumed to be the delimiters. White-space characters are defined by the Unicode standard and returntrue
if they are passed to theChar.IsWhiteSpace
method.
Always, always, always read the documentation!