What are the writeReplace() and readResolve() methods used for?These methods are used to allow an object to provide an alternative representation for ...
分类:
其他好文 时间:
2014-08-23 13:54:40
阅读次数:
247
Java 序列化对象的一个使用案例 object serialization API...
分类:
编程语言 时间:
2014-08-22 14:32:18
阅读次数:
333
通过XmlSerializer 我们可以十分简单的将Model与XML进行转换官文在点这里帮助类 1 using System; 2 using System.Text; 3 using System.Xml.Serialization; 4 using System.IO; 5 usin...
分类:
其他好文 时间:
2014-08-21 11:26:14
阅读次数:
255
mvc中默认使用的json返回序列化工具是JsonValueProviderFactory,JsonValueProviderFactory继承自ValueProviderFactory抽象类。JsonValueProviderFactory使用的序列化类库是System.Web.Script.Serialization。现在我们来写一个自己的方序列话工具,采用的是Newtonsoft.Json序...
分类:
Web程序 时间:
2014-08-14 14:08:28
阅读次数:
248
using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Script.Serialization;namespace ajax{ /// /// ...
分类:
Web程序 时间:
2014-08-09 13:21:28
阅读次数:
259
Insus.NET前些日子,有分享了一段代码,《使用JSONP跨域请求数据》http://www.cnblogs.com/insus/p/3512271.html是使用jQuery的DataType的jsonp来获取远端的数据。但是网友私下跟Insus.NET说,不会使用。主要是远端提供的数据,以及...
分类:
Web程序 时间:
2014-08-07 12:36:09
阅读次数:
223
题目:Clone an undirected graph. Each node in the graph contains a label and a list of its neighbors.OJ's undirected graph serialization:Nodes are label....
分类:
编程语言 时间:
2014-07-29 12:09:37
阅读次数:
388
1.文件系统操作,相关的累在 System.IO命名空间中,而注册表操作由System.Win32命名空间中的类执行。2.System.Runtime.Serialization都与串行化有关,串行化是把一些数据(如文档的内容)转化为字节流并存储在某个地方的过程。3.FileSystemInfo--...
分类:
其他好文 时间:
2014-07-28 15:24:53
阅读次数:
167
这里要用到如下两个namespace:using System.Runtime.Serialization.Json;using System.Runtime.Serialization;定义Json实体类如下:[DataContract]public class TextMessage{ [...
分类:
Web程序 时间:
2014-07-23 11:49:46
阅读次数:
218
JsonAbout:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.IO;using System.Web.Script.Serialization;usin...
分类:
编程语言 时间:
2014-07-22 22:42:35
阅读次数:
309