Class DynamicXmlConverterCore
- Namespace
- Cuemon.Xml.Serialization
- Assembly
- Cuemon.Xml.dll
Infrastructure class for DynamicXmlConverter. Implements the XmlConverter
public class DynamicXmlConverterCore : XmlConverter
- Inheritance
-
ObjectDynamicXmlConverterCore
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
objectType
TypeThe System.Type of the object.
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
reader
XmlReaderThe System.Xml.XmlReader to read from.
objectType
TypeThe System.Type of the object.
Returns
- Object
An object of
objectType
.
Exceptions
- System.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 System.Xml.XmlWriter to write to.
value
ObjectThe object to serialize.
elementName
XmlQualifiedEntityThe element name to encapsulate around
value
.
Exceptions
- System.InvalidOperationException
Delegate writer is null.