public byte[] Serialize(object graph) { return(StreamHelper.Serialize(graph, (s, g) => new NetDataContractSerializer().Serialize(s, g))); }
public object Deserialize(byte[] data) { return(StreamHelper.Deserialize(data, s => new DataContractSerializer(Type).ReadObject(s))); }
public object Deserialize(byte[] data) { return(StreamHelper.Deserialize(data, s => new NetDataContractSerializer().Deserialize(s))); }
public byte[] Serialize(object graph) { return(StreamHelper.Serialize(graph, (s, g) => new DataContractSerializer(Type).WriteObject(s, g))); }