自定义集合,WebService和ArrayOf [英] Custom collection, WebService and ArrayOf

查看:76
本文介绍了自定义集合,WebService和ArrayOf的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

[.NET 2.0,VS2005]

大家好,

我正在通过WebService传递数据.我有一些可以完美工作的自定义对象.

I work passing data through a WebService. I have some custom objects that work flawlessly.

但是现在我必须开始处理一些项目集合.我使用

But now I have to start working with some collections of items. I implemented them using

代码段

推荐答案

卡洛斯,

添加服务参考

点击高级

选择集合类型"中的"System.Collections.Generic.List".

Select System.Collections.Generic.List in Collections Type.

然后:

Service1Client service = new Service1Client();
List<MyObject> myObj = service.GetList();


问候


这篇关于自定义集合,WebService和ArrayOf的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆