Пример #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();
 }
Пример #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();
 }