AngleSharp by Florian Rappl

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

 HTMLCollection

public abstract class HTMLCollection : IEnumerable<Element>, IEnumerable
A collection of HTML nodes.
public Element this[int index] { get; }

Gets the specific node whose id matches the string specified by the attribute. Matching by name is only done as a last resort, only in HTML, and only if the referenced element supports the name attribute. Returns null if no node exists by the given name.

public object this[string id] { get; }

Gets the specific node whose id matches the string specified by the attribute. Matching by name is only done as a last resort, only in HTML, and only if the referenced element supports the name attribute. Returns null if no node exists by the given name.

public int Length { get; }

Gets the number of nodes in the list.

public abstract IEnumerator<Element> GetEnumerator()

Gets an enumerator over the contained elements.

protected abstract Element GetItem(int index)

Gets the item at the specified index.

protected virtual object GetItem(string id)

Gets the item with the specified id.

protected abstract int GetLength()

Gets the number of items in the collection.