XmlArchive.archiveTypedef

Archives a typedef.

class XmlArchive(U = char)
void
archiveTypedef
(
string type
,
string key
,
Id id
,
void delegate
()
dg
)

Parameters

type string

the type of the typedef

key string

the key associated with the typedef

id Id

the id associated with the typedef

dg void delegate
()

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

Examples

typedef int Foo;
Foo a = 3;

auto archive = new XmlArchive!();
archive.archiveTypedef(Foo.stringof, "a", 0, {
	// archive "a" as the base type of Foo, i.e. int
});

Meta