AngleSharp by Florian Rappl

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

 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.

Creates a new constructor object.

public void Apply(CssToken token)

Picks a simple selector from the stream of tokens.

Gets the currently formed selector.

Resets the current state.