我有这行代码:
string[] ids = Request.Params["service"].Split(",");
中的值Request.Params["service"]
是:"1,2"
为什么我得到:
Error 1 The best overloaded method match for 'string.Split(params char[])' has some invalid arguments
Error 2 Argument 1: cannot convert from 'string' to 'char[]'
这对我来说毫无意义......
错误发生在等号右侧的所有内容上