<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />

StringReference

using System.Runtime.CompilerServices; namespace Newtonsoft.Json.Utilities { [System.Runtime.CompilerServices.NullableContext(1)] [System.Runtime.CompilerServices.Nullable(0)] internal readonly struct StringReference { private readonly char[] _chars; private readonly int _startIndex; private readonly int _length; public char this[int i] { get { return _chars[i]; } } public char[] Chars => _chars; public int StartIndex => _startIndex; public int Length => _length; public StringReference(char[] chars, int startIndex, int length) { _chars = chars; _startIndex = startIndex; _length = length; } public override string ToString() { return new string(_chars, _startIndex, _length); } } }