コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="XmlFormatter"/> class.
 /// </summary>
 /// <param name="options">The configured <see cref="XmlFormatterOptions"/>.</param>
 public XmlFormatter(XmlFormatterOptions options)
 {
     Validator.ThrowIfNull(options, nameof(options));
     Options = options;
     if (options.SynchronizeWithXmlConvert)
     {
         options.Settings.ApplyToDefaultSettings();
     }
 }
コード例 #2
0
ファイル: XmlFormatter.cs プロジェクト: EnhWeb/CuemonCore
 /// <summary>
 /// Initializes a new instance of the <see cref="XmlFormatter"/> class.
 /// </summary>
 /// <param name="options">The configured <see cref="XmlFormatterOptions"/>.</param>
 public XmlFormatter(XmlFormatterOptions options)
 {
     Validator.ThrowIfNull(options, nameof(options));
     Options = options;
 }