阅读背景:

如何使DataContractJsonSerializer将对象序列化为字符串?

来源:互联网 

I have a struct in C# that wraps a guid. I'm using DataContractJsonSerializer to serialize an object containing an instance of that class. When I was using a guid directly, it was serialized as a plain string, but now it's serialized as a name/value pair. Here's an NUnit test and supporting code that demonstrates the problem:I have a struct in C# that wraps a guid. I'm us




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: