AngleSharp by AngleSharp

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

 StringTextSource

Char array based immutable text source
public Encoding CurrentEncoding { get; set; }

public int Index { get; set; }

public char this[int index] { get; }

public int Length { get; }

public string Text { get; }

public StringTextSource(string source)

Creates a new text source from a string

public void Dispose()

public Task PrefetchAllAsync(CancellationToken cancellationToken)

public Task PrefetchAsync(int length, CancellationToken cancellationToken)

public char ReadCharacter()

public string ReadCharacters(int characters)

public StringOrMemory ReadMemory(int characters)

public bool TryGetContentLength(out int length)