Why we cant return List in ASMX web services?

前端 未结 5 2021
忘掉有多难
忘掉有多难 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:27

    Web services are supposed to be interoperable with many languages. Nearly all languages have arrays, but only .NET has the specific implementation of List that you're using.

提交回复
热议问题