AngleSharp.Css by AngleSharp

<PackageReference Include="AngleSharp.Css" Version="1.0.0-alpha-108" />

 CssTokenExtensions

static class CssTokenExtensions
Extensions to be used exclusively by the tokenizer.
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 Is(this CssToken token, CssTokenType a, CssTokenType b, CssTokenType c)

Checks if the provided token is one of the list of tokens.

Checks if the provided token is one of the list of tokens.

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.

public static bool IsPotentiallyNested(this CssToken token)