为什么不能返回DataTable类型和SortedList对象
[WebMethod]
public DataSet PubSel(string strProName,SortedList slParames)
{
return getDataSet(strProName,slParames);
}
这样的一个方法,我传了两个参数为什么为提示:System.NotSupportedException: 不支持类型 System.Collections.SortedList,因为它实现 IDictionary。
而用把SortedList改ArrayList就可以呢,真的搞不懂了,还有就是为什么返回DataTable就不行呢,有没有高手在呀!帮帮忙!