Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="XmlFormatterOptions"/> class.
 /// </summary>
 /// <remarks>
 /// The following table shows the initial property values for an instance of <see cref="XmlFormatterOptions"/>.
 /// <list type="table">
 ///     <listheader>
 ///         <term>Property</term>
 ///         <description>Initial Value</description>
 ///     </listheader>
 ///     <item>
 ///         <term><see cref="FormatterOptions{TReader,TReaderOptions,TWriter,TWriterOptions,TConverter}.Converter"/></term>
 ///         <description><c>null</c></description>
 ///     </item>
 ///     <item>
 ///         <term><see cref="ReaderSettings"/></term>
 ///         <description><see cref="XmlReaderUtility.CreateSettings"/></description>
 ///     </item>
 ///     <item>
 ///         <term><see cref="WriterSettings"/></term>
 ///         <description><see cref="XmlWriterUtility.CreateSettings"/></description>
 ///     </item>
 ///     <item>
 ///         <term><see cref="RootName"/></term>
 ///         <description><c>null</c></description>
 ///     </item>
 /// </list>
 /// </remarks>
 public XmlFormatterOptions()
 {
     Converter      = null;
     WriterSettings = XmlWriterUtility.CreateSettings();
     ReaderSettings = XmlReaderUtility.CreateSettings();
     RootName       = null;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="XmlSerializerSettings"/> class.
 /// </summary>
 /// <remarks>
 /// The following table shows the initial property values for an instance of <see cref="DefaultXmlConverter"/>.
 /// <list type="table">
 ///     <listheader>
 ///         <term>Property</term>
 ///         <description>Initial Value</description>
 ///     </listheader>
 ///     <item>
 ///         <term><see cref="Reader"/></term>
 ///         <description><see cref="XmlReaderUtility.CreateSettings"/></description>
 ///     </item>
 ///     <item>
 ///         <term><see cref="Writer"/></term>
 ///         <description><see cref="XmlWriterUtility.CreateSettings"/></description>
 ///     </item>
 ///     <item>
 ///         <term><see cref="Converters"/></term>
 ///         <description><see cref="List{XmlConverter}"/></description>
 ///     </item>
 ///     <item>
 ///         <term><see cref="RootName"/></term>
 ///         <description><c>null</c></description>
 ///     </item>
 /// </list>
 /// </remarks>
 public XmlSerializerSettings()
 {
     Writer     = XmlWriterUtility.CreateSettings();
     Reader     = XmlReaderUtility.CreateSettings();
     Converters = new List <XmlConverter>();
     DefaultConverters?.Invoke(Converters);
 }