Class XmlSerializerSettings
Specifies options that is related to XmlSerializer operations.
Inheritance
Namespace: Cuemon.Serialization.Xml
Assembly: Cuemon.Serialization.Xml.dll
Syntax
public class XmlSerializerSettings
Constructors
| Improve this DocXmlSerializerSettings()
Initializes a new instance of the XmlSerializerSettings class.
Declaration
public XmlSerializerSettings()
Remarks
The following table shows the initial property values for an instance of DefaultXmlConverter.
Property | Initial Value |
---|---|
Reader | CreateSettings(Action<XmlReaderSettings>) |
Writer | CreateSettings(Action<XmlWriterSettings>) |
Converters | System.Collections.Generic.List<T> |
RootName | null |
Properties
| Improve this DocConverters
Gets or sets a XmlConverter collection that will be used during serialization.
Declaration
public IList<XmlConverter> Converters { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IList<XmlConverter> | The converters that will be used during serialization. |
DefaultConverters
Gets or sets a delegate that is invoked when XmlSerializerSettings is initialized and propagates registered XmlConverter implementations.
Declaration
public static Action<IList<XmlConverter>> DefaultConverters { get; set; }
Property Value
Type | Description |
---|---|
System.Action<System.Collections.Generic.IList<XmlConverter>> | The delegate which propagates registered XmlConverter implementations when XmlSerializerSettings is initialized. |
Reader
Gets or sets the System.Xml.XmlReaderSettings to support the XmlSerializer.
Declaration
public XmlReaderSettings Reader { get; set; }
Property Value
Type | Description |
---|---|
System.Xml.XmlReaderSettings | A System.Xml.XmlReaderSettings instance that specifies a set of features to support the XmlSerializer object. |
RootName
Gets or sets the name of the XML root element.
Declaration
public XmlQualifiedEntity RootName { get; set; }
Property Value
Type | Description |
---|---|
XmlQualifiedEntity | The name of the XML root element. |
Writer
Gets or sets the System.Xml.XmlWriterSettings to support the XmlSerializer.
Declaration
public XmlWriterSettings Writer { get; set; }
Property Value
Type | Description |
---|---|
System.Xml.XmlWriterSettings | A System.Xml.XmlWriterSettings instance that specifies a set of features to support the XmlSerializer object. |