Service Reference is using Arrays instead of List, even when settings say to use List

后端 未结 2 565
难免孤独
难免孤独 2021-02-14 16:13

I\'m using Visual Studio 2010, and I\'ve got a service reference to a web service we created. Our methods return objects that contain generic List properties:

p         


        
2条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-14 16:23

    In the Add Service Reference, you can choose which type to use for Collections. For some reason Array is default. After changing it, I've had to delete the entire reference and re-add it, choosing List from the beginning. I've had weird issues changing it after the fact.

提交回复
热议问题