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