WCF: generic list serialized to array

后端 未结 5 847
醉话见心
醉话见心 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条回答
  •  Happy的楠姐
    2021-01-03 12:07

    I think this is dent with purely from the way that the client tool generates the contracts from the WSDL. In my case, I made a reusable .dll that contains my [OperationContract] and [DataContract] classes, and use it from both the client and the server, instead of generating one with SvcUtil. This way I preserve my lists of generics.

提交回复
热议问题