AngleSharp by Florian Rappl

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

 CssSelectorConstructor

sealed class CssSelectorConstructor
Class for construction for CSS selectors as specified in http://www.w3.org/html/wg/drafts/html/master/selectors.html.
public bool IsNested { get; }

Gets if the stored selector is nested below another selector.

public bool IsValid { get; }

Gets if the stored selector is valid.

public ISelector Result { get; }

Gets the currently formed selector.

Creates a new constructor object.

public void Apply(CssToken token)

Picks a simple selector from the stream of tokens.

Resets the current state.