且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

ASP.NET WebAPI序列化问题

更新时间:2023-02-16 15:29:25

看起来您的问题可能是您正在根据响应创建响应...您创建了响应,如果不是null,则尝试创建另一个回应与原始回应.因此,我想它正在尝试序列化原始响应,而不是您的对象.

It looks like your issue might be that you are creating a response out of a response...You create a response, then if not null, try to create another response with the original response. So, I imagine it is trying to serialize the original response, not your object.