Cannot serialize member… because it is an interface

前端 未结 2 828
误落风尘
误落风尘 2020-12-02 01:33

I have been having this problem and been pulling my hair out over it. I have the followin error:

Exception Details: System.NotSupportedException: Can

2条回答
  •  粉色の甜心
    2020-12-02 02:21

    In the code you posted, the type of CustomerAddresses is IList. That's an interface. Like the error message says, you can't serialize an interface.

提交回复
热议问题