Why we cant return List in ASMX web services?

前端 未结 5 2060
忘掉有多难
忘掉有多难 2021-01-06 10:09

As developers know we cant return List with web services, we can only return lists with converting them to .ToArray(); I\'ve searched some, but cant ge

5条回答
  •  我在风中等你
    2021-01-06 10:40

    It depends on the interoperability settings of the webservice, an object like int[] is easier to understand for a non .NET language then List. If you develop your web service under WCF, List is supported as a return type.

提交回复
热议问题