示例#1
0
 public byte[] Serialize(object graph)
 {
     return(StreamHelper.Serialize(graph,
                                   (s, g) => new NetDataContractSerializer().Serialize(s, g)));
 }
示例#2
0
 public object Deserialize(byte[] data)
 {
     return(StreamHelper.Deserialize(data,
                                     s => new DataContractSerializer(Type).ReadObject(s)));
 }
示例#3
0
 public object Deserialize(byte[] data)
 {
     return(StreamHelper.Deserialize(data,
                                     s => new NetDataContractSerializer().Deserialize(s)));
 }
示例#4
0
 public byte[] Serialize(object graph)
 {
     return(StreamHelper.Serialize(graph,
                                   (s, g) => new DataContractSerializer(Type).WriteObject(s, g)));
 }