public final class XamlSerializer extends Object
By default, the resulting XAML output follows the rules for normal XAML output. In addition, serialization can be fine
tuned by applying GraphML
to the target object's class or some of its members.
Note that usually the type should be excluded from obfuscation, or its name should be declared with
Name
. The same holds for specific members.
GraphML
Modifier and Type | Field and Description |
---|---|
static XamlSerializer |
INSTANCE
A singleton instance of this class.
|
Modifier and Type | Method and Description |
---|---|
void |
serialize(Type type,
IWriteContext context,
Object subject)
Serialize the given object to a
IXmlWriter . |
public static final XamlSerializer INSTANCE
public final void serialize(Type type, IWriteContext context, Object subject)
IXmlWriter
.
This implementation already provides the toplevel XML element with an appropriate tag name.
context
- The current write contextsubject
- The actual object