码迷,mamicode.com
首页 >  
搜索关键字:serialization    ( 695个结果
LeetCode-Clone Graph
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 labeled u...
分类:其他好文   时间:2015-01-05 07:03:18    阅读次数:261
JavaScriptSerializer 序列化时异常:Operation is not valid due to the current state of the object.
异常详情: System.InvalidOperationException: Operation is not valid due to the current state of the object.    at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeDictionary(Int32 ...
分类:编程语言   时间:2015-01-04 15:19:16    阅读次数:130
[转]JSON序列化与反序列化
使用微软自带的Json库方法一:引入System.Web.Script.Serialization命名空间使用 JavaScriptSerializer类实现简单的序列化序列化类:PersonnelpublicclassPersonnel{publicintId{get;set;}publicstr...
分类:Web程序   时间:2014-12-30 13:25:14    阅读次数:279
[leetcod] Clone Graph
题目:Clone an undirected graph. Each node in the graph contains alabeland a list of itsneighbors.OJ's undirected graph serialization:Nodes are labeled u...
分类:其他好文   时间:2014-12-30 07:03:08    阅读次数:208
自定义序列化过程
除了使用事件以外,还可以通过自定义序列化来完成这一过程。         自定义序列化只需要实现ISerializable接口就可以了。它位于using System.Runtime.Serialization;                SerializationInfo有点儿类似于BinaryWriter和BinaryReader,用于写入和读取对象的属性值。它主要包...
分类:其他好文   时间:2014-12-28 22:18:15    阅读次数:257
序列化与反序列化基本操作
一,为什么需要序列化       当程序运行时,需要访问和处理数据,在面向对象编程中,这些数据通常保存在对象中,当程序关闭或对象销毁时,这些数据需要保存到某处以便日后重建对象时能够还原对象的状态。       将对象及其状态保存起来,就称作序列化(Serialization),最简单和最常见的一种情况就是将对象及其状态保存在文件中;        而反序列化是序列化的反向操作,将文件还...
分类:其他好文   时间:2014-12-28 15:36:13    阅读次数:224
[C#]JavaScriptSerializer 帮助类
关键代码: using System; using System.Collections.Generic; using System.Text.RegularExpressions; using System.Web.Script.Serialization; namespace YanZhiwei...
分类:编程语言   时间:2014-12-26 12:57:40    阅读次数:189
XML序列化和反序列化 以及相关类的写法
类的写法:省网办数据对接中运用到using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Xml.Serialization;namespace SWBExchange...
分类:其他好文   时间:2014-12-25 15:53:40    阅读次数:147
[LeetCode]Clone Graph
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 labeled uniquely. We use # as a separator for each...
分类:其他好文   时间:2014-12-24 21:36:49    阅读次数:188
12.序列化与反序列篇
1.对象序列化的介绍1.NET支持对象序列化的几种方式二进制序列化:对象序列化之后是二进制形式的,通过BinaryFormatter类来实现的,这个类位于System.Runtime.Serialization.Formatters.Binary命名空间下。SOAP序列化:对象序列化之后的结果符合S...
分类:其他好文   时间:2014-12-23 00:11:27    阅读次数:238
695条   上一页 1 ... 54 55 56 57 58 ... 70 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!