System.ReadOnlySpanExtensions.Slice C# (CSharp) Method

Slice() private method

private Slice ( this text ) : ReadOnlySpan
text this
return ReadOnlySpan
        public static ReadOnlySpan<char> Slice(this string text)
        {
            if (text == null)
                ThrowHelper.ThrowArgumentNullException(ExceptionArgument.text);

            return new ReadOnlySpan<char>(Unsafe.As<Pinnable<char>>(text), StringAdjustment, text.Length);
        }

Same methods

ReadOnlySpanExtensions::Slice ( this text, int start ) : ReadOnlySpan
ReadOnlySpanExtensions::Slice ( this text, int start, int length ) : ReadOnlySpan
ReadOnlySpanExtensions