the type to deserialize the data into
the serialized untyped data to deserialize
the key associate with the value that was used during serialization. Do not specify a key if no key was used during serialization.
the deserialized value. A different runtime type can be returned if the given type is a base class.
SerializationException if an error occurs
auto archive = new XmlArchive!(); auto serializer = new Serializer(archive); auto data = serializer.serialize(1); auto i = serializer.deserialize!(int)(data); assert(i == 1);
Deserializes the given data to value of the given type.
This is the main method used for deserializing data.