Class XmlConverter
Converts an object to and from XML.
Namespace: Cuemon.Serialization.Xml.Converters
Assembly: Cuemon.Serialization.Xml.dll
Syntax
public abstract class XmlConverter
  Properties
| Improve this DocCanRead
Gets a value indicating whether this XmlConverter can XML.
Declaration
public virtual bool CanRead { get; }
  Property Value
| Type | Description | 
|---|---|
| System.Boolean | 
  | 
      
CanWrite
Gets a value indicating whether this XmlConverter can write XML.
Declaration
public virtual bool CanWrite { get; }
  Property Value
| Type | Description | 
|---|---|
| System.Boolean | 
  | 
      
Methods
| Improve this DocCanConvert(Type)
Determines whether this instance can convert the specified object type.
Declaration
public abstract bool CanConvert(Type objectType)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Type | objectType | The System.Type of the object.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Boolean | 
  | 
      
ReadXml(XmlReader, Type)
Reads the XML representation of the objectType.
Declaration
public abstract object ReadXml(XmlReader reader, Type objectType)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Xml.XmlReader | reader | The System.Xml.XmlReader to read from.  | 
      
| System.Type | objectType | The System.Type of the object.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Object | An object of   | 
      
WriteXml(XmlWriter, Object, XmlQualifiedEntity)
Writes the XML representation of the value.
Declaration
public abstract void WriteXml(XmlWriter writer, object value, XmlQualifiedEntity elementName = null)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Xml.XmlWriter | writer | The System.Xml.XmlWriter to write to.  | 
      
| System.Object | value | The object to serialize.  | 
      
| XmlQualifiedEntity | elementName | The element name to encapsulate around   |