Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PipeTableParser" /> class.
 /// </summary>
 /// <param name="lineBreakParser">The linebreak parser to use</param>
 /// <param name="options">The options.</param>
 public PipeTableParser(LineBreakInlineParser lineBreakParser, PipeTableOptions options = null)
 {
     if (lineBreakParser == null)
     {
         throw new ArgumentNullException(nameof(lineBreakParser));
     }
     this.lineBreakParser = lineBreakParser;
     OpeningCharacters    = new[] { '|', '\n' };
     Options = options ?? new PipeTableOptions();
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PipeTableExtension"/> class.
 /// </summary>
 /// <param name="options">The options.</param>
 public PipeTableExtension(PipeTableOptions options = null)
 {
     Options = options ?? new PipeTableOptions();
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PipeTableParser" /> class.
 /// </summary>
 /// <param name="options">The options.</param>
 public PipeTableParser(PipeTableOptions options = null)
 {
     OpeningCharacters = new[] { '|', '\n' };
     Options           = options ?? new PipeTableOptions();
 }