XmlArchive.unarchiveTypedef

Unarchives the typedef associated with the given key.

class XmlArchive(U = char)
void
unarchiveTypedef
(
string key
,
void delegate
()
dg
)

Parameters

key string

the key associated with the typedef

dg void delegate
()

a callback that performs the unarchiving of the value as the base type of the typedef

Examples

typedef int Foo;
Foo foo = 3;

auto archive = new XmlArchive!();
archive.beginUnarchiving(data);
archive.unarchiveTypedef("foo", {
	// unarchive "foo" as the base type of Foo, i.e. int
});

Meta