AngleSharp by Florian Rappl

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

 CssParserExtensions

static class CssParserExtensions
Extensions to be used exclusively by the parser or the tokenizer.
public static int GetCode(this CssParseError code)

Retrieves a number describing the error of a given error code.

public static Func<IEnumerable<CssCondition>, CssCondition> GetCreator(this string conjunction)

Gets the corresponding conjunction creator, if there is any.

public static CssTokenType GetTypeFromName(this string functionName)

Gets the corresponding token type for the function name.

public static bool Is(this CssToken token, CssTokenType a, CssTokenType b)

Checks if the provided token is either of the first or the second type of token.

public static bool IsMatchToken(this CssToken token)

Checks if the provided token is actually a match token.

public static bool IsNot(this CssToken token, CssTokenType a, CssTokenType b)

Checks if the provided token is neither of the first nor the second type of token.

public static bool IsNot(this CssToken token, CssTokenType a, CssTokenType b, CssTokenType c)

Checks if the provided token is neither of the first, nor the second nor the third type of token.

Tries to create an IDocumentFunction from the provided token.