String.Implicit(String to ReadOnlySpan<Char>) 操作员

定义

定义给定字符串到只读字符范围的隐式转换。Defines an implicit conversion of a given string to a read-only span of characters.

public:
 static operator ReadOnlySpan<char>(System::String ^ value);
public static implicit operator ReadOnlySpan<char> (string value);
static member op_Implicit : string -> ReadOnlySpan<char>
Public Shared Widening Operator CType (value As String) As ReadOnlySpan(Of Char)

参数

value
String

要隐式转换的字符串。A string to implicitly convert.

返回

表示字符串的新只读字符范围。A new read-only span of characters representing the string.

适用于