string myStr = \"part1#part2\";
To split this simple string Split() method expect array with arguments to be passed. Really? Why I can\'t just specify
You can. String.Split takes a param argument, which allows for variable number of arguments.
param
The following works as expected
var text = "a,a,a"; var parts = text.Split(',');