WCF: generic list serialized to array

后端 未结 5 821
醉话见心
醉话见心 2021-01-03 11:27

So I am working with WCF and my services return types that contain generic lists. WCF is currently converting these to arrays over the wire. Is there a way I configure WCF t

5条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-03 11:59

    I found a solution that was much simpler and worked well enough for me, although it might not work for others. I simply switched from using ICollection (IList also produces this result) to List. It worked fine after that.

    Solution from Here.

    I also found a possible configuration solution from Here near the bottom.

    
        
    
    

提交回复
热议问题