According to MSDN, All of the String.Split overloads take an array of char or an array of string as first parameter. However,
string str = "Hello World";
string[] split = str.Split(' ');
works as well. Is there some sort of scalar promotion to array in C# or is there an overload missing in the description of string.split ?
Cheers,
Guillaume
string str = "Hello World";
string[] split = str.Split(' ');
works as well. Is there some sort of scalar promotion to array in C# or is there an overload missing in the description of string.split ?
Cheers,
Guillaume
Comment