Exemplo n.º 1
0
 /// <summary>
 /// Creates a new parser with the custom options and the given context.
 /// </summary>
 /// <param name="options">The options to use.</param>
 /// <param name="context">The context to use.</param>
 public HtmlParser(HtmlParserOptions options, IBrowsingContext context)
 {
     _options = options;
     _context = context ?? BrowsingContext.NewFrom <IHtmlParser>(this);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Creates a new parser with the custom options.
 /// </summary>
 /// <param name="options">The options to use.</param>
 public HtmlParser(HtmlParserOptions options)
     : this(options, default(IBrowsingContext))
 {
 }