代码改变世界

随笔分类 -  .NET

Serialize an Object Using JSON

2011-09-28 15:45 by wildboar, 227 阅读, 收藏,
摘要: When we intend to serialize an object via JSON, we need to use DataContractJsonSerializer class , it is necessary to add two references below: System.ServiceModel.Web System.Runtime.Serialization.Js... 阅读全文

Add Reference

2011-07-10 14:45 by wildboar, 1302 阅读, 收藏,
摘要: We use ‘using’ key word to add the namespace in the application, but the system still give us the message that it could not find the specific class. As usually, we forgot to add the reference in the a... 阅读全文