Class XmlWrapper
- Namespace
- Cuemon.Xml.Serialization
- Assembly
- Cuemon.Xml.dll
Provide ways to override the default XML serialization.
public abstract class XmlWrapper : Wrapper<object>, IWrapper<object>, IData
- Inheritance
-
XmlWrapper
- Implements
- Inherited Members
Constructors
XmlWrapper(Object)
Initializes a new instance of the XmlWrapper class.
protected XmlWrapper(object instance)
Parameters
instance
ObjectThe instance to override normal serialization naming logic.
Properties
Data
Gets a collection of key/value pairs that provide additional user-defined information about this wrapper object.
public override IDictionary<string, object> Data { get; }
Property Value
- IDictionary<String, Object>
An object that implements the IDictionary<TKey,TValue> interface and contains a collection of user-defined key/value pairs.
HasMemberReference
Gets a value indicating whether this instance has a member reference.
public override bool HasMemberReference { get; }
Property Value
- Boolean
true
if this instance has a member reference; otherwise,false
.
InstanceName
Gets or sets the name of the instance used in XML serialization. Overrides normal serialization logic.
public abstract XmlQualifiedEntity InstanceName { get; set; }
Property Value
- XmlQualifiedEntity
The name of the instance used in XML serialization.
InstanceType
Gets the type of the object that this wrapper represents.
public override Type InstanceType { get; protected set; }
Property Value
- Type
The type of the that this wrapper represents.
MemberReference
Gets the member from where Instance was referenced.
public override MemberInfo MemberReference { get; protected set; }
Property Value
- MemberInfo
The member from where Instance was referenced.