Class DynamicXmlConverterCore
- Namespace
- Cuemon.Xml.Serialization
- Assembly
- Cuemon.Xml.dll
Infrastructure class for DynamicXmlConverter. Implements the XmlConverter
public class DynamicXmlConverterCore : XmlConverter
- Inheritance
-
DynamicXmlConverterCore
Properties
CanRead
Gets a value indicating whether this Cuemon.Extensions.Xml.Serialization.Converters.XmlConverter can XML.
public override bool CanRead { get; }
Property Value
- Boolean
true
if this Cuemon.Extensions.Xml.Serialization.Converters.XmlConverter can read XML; otherwise,false
.
CanWrite
Gets a value indicating whether this Cuemon.Extensions.Xml.Serialization.Converters.XmlConverter can write XML.
public override bool CanWrite { get; }
Property Value
- Boolean
true
if this Cuemon.Extensions.Xml.Serialization.Converters.XmlConverter can write XML; otherwise,false
.
RootName
Gets or sets the root name of the XML.
public XmlQualifiedEntity RootName { get; set; }
Property Value
- XmlQualifiedEntity
The root name of XML.
Methods
CanConvert(Type)
Determines whether this instance can convert the specified object type.
public override bool CanConvert(Type objectType)
Parameters
Returns
- Boolean
true
if this instance can convert the specified object type; otherwise,false
.
ReadXml(XmlReader, Type)
Reads the XML representation of the objectType
.
public override object ReadXml(XmlReader reader, Type objectType)
Parameters
Returns
- Object
An object of
objectType
.
Exceptions
- InvalidOperationException
Delegate reader is null.
WriteXml(XmlWriter, Object, XmlQualifiedEntity)
Writes the XML representation of the value
.
public override void WriteXml(XmlWriter writer, object value, XmlQualifiedEntity elementName = null)
Parameters
writer
XmlWriterThe XmlWriter to write to.
value
ObjectThe object to serialize.
elementName
XmlQualifiedEntityThe element name to encapsulate around
value
.
Exceptions
- InvalidOperationException
Delegate writer is null.