StringTextSource public sealed class StringTextSource : IReadOnlyTextSource, IDisposable Char array based immutable text source Documentation Code 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)