예제 #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)));
 }