AngleSharp by Florian Rappl

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

 TokenList

A simple list of tokens that is immutable.
public string this[int index] { get; }

Gets an item in the list by its index.

public int Length { get; }

Gets the number of tokens.

public event EventHandler Changed

public void Add(string[] tokens)

Adds tokens to the underlying string.

public bool Contains(string token)

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

public IEnumerator<string> GetEnumerator()

Returns an enumerator that iterates through the strings in the collection.

public void Remove(string[] tokens)

Removes tokens from the underlying string.

public bool Toggle(string token, bool force = false)

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