AngleSharp by Florian Rappl

<PackageReference Include="AngleSharp" Version="0.2.4" />

 DocumentBuilder

public sealed class DocumentBuilder
A handy helper to construct various kinds of documents from a given source code, URL or stream.
public CSSStyleSheet CssResult { get; }

Gets the result of a CSS parsing.

public HTMLDocument HtmlResult { get; }

Gets the result of an HTML parsing.

public static CSSStyleSheet Css(string sourceCode)

Builds a new CSSStyleSheet with the given source code string.

public static CSSStyleSheet Css(Uri url)

Builds a new CSSStyleSheet with the given URL.

public static CSSStyleSheet Css(Stream networkStream)

Builds a new CSSStyleSheet with the given network stream.

public static HTMLDocument Html(string sourceCode)

Builds a new HTMLDocument with the given source code string.

public static HTMLDocument Html(Uri url)

Builds a new HTMLDocument with the given URL.

public static HTMLDocument Html(Stream networkStream)

Builds a new HTMLDocument with the given network stream.

public static NodeList HtmlFragment(string sourceCode, Node context = null)

Builds a list of nodes according with 8.4 Parsing HTML fragments.