AngleSharp by AngleSharp

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

.NET API 960,512 bytes

 ITokenList

public interface ITokenList : IEnumerable<string>, IEnumerable
This type represents a set of space-separated tokens.
string this[int index] { get; }

Gets an item in the list by its index.

int Length { get; }

Gets the number of contained tokens.

void Add(string[] tokens)

Adds some tokens to the underlying string.

bool Contains(string token)

Returns true if the underlying string contains a token, otherwise false.

void Remove(string[] tokens)

Remove some tokens from the underlying string.

bool Toggle(string token, bool force = false)

Removes the specified token from string and returns false. If token doesn't exist it's added and the function returns true.