StringSegment.AsSpan 方法

定义

从当前 ReadOnlySpan<T> 中获取 StringSegmentGets a ReadOnlySpan<T> from the current StringSegment.

public:
 ReadOnlySpan<char> AsSpan();
public ReadOnlySpan<char> AsSpan ();
member this.AsSpan : unit -> ReadOnlySpan<char>
Public Function AsSpan () As ReadOnlySpan(Of Char)

返回

ReadOnlySpan<Char>

StringSegment 中的 ReadOnlySpan<T>The ReadOnlySpan<T> from this StringSegment.

适用于