/// <summary>
 ///   Initializes a new instance of the <see cref="StructuredFileWriter" /> class.
 /// </summary>
 /// <param name="file">The file.</param>
 /// <param name="processDisplay">The process display.</param>
 public StructuredFileWriter([NotNull] StructuredFile file,
                             [CanBeNull] IProcessDisplay processDisplay)
     : base(file, processDisplay)
 {
     m_Row        = file.Row;
     m_XMLEncode  = file.XMLEncode;
     m_JSONEncode = file.JSONEncode;
 }
Ejemplo n.º 2
0
 /// <summary>
 ///   Initializes a new instance of the <see cref="StructuredFileWriter" /> class.
 /// </summary>
 /// <param name="file">The file.</param>
 /// <param name="cancellationToken">A cancellation token to stop writing the file</param>
 public StructuredFileWriter(StructuredFile file, CancellationToken cancellationToken)
     : base(file, cancellationToken)
 {
     Contract.Requires(file != null);
     m_StructuredWriterFile = file;
 }