在接收服务器返回的数据时使用List接收
JsonrpcResult<List<Sys_Dictionary>> rspRslt = JsonrpcHttpClient.CallJsonrpc<List<Sys_Dictionary>>(reqUrl, senddata);
函数的返回值为IList<Sys_Dictionary>类型
再去操作IList.Insert或者IList.Add就不会报集合大小是固定的问题了。
其实归结到底还是List和IList的用法
在接收服务器返回的数据时使用List接收
JsonrpcResult<List<Sys_Dictionary>> rspRslt = JsonrpcHttpClient.CallJsonrpc<List<Sys_Dictionary>>(reqUrl, senddata);
函数的返回值为IList<Sys_Dictionary>类型
再去操作IList.Insert或者IList.Add就不会报集合大小是固定的问题了。
其实归结到底还是List和IList的用法