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

定义

定义给定字符串到只读字符范围的隐式转换。

public:
 static operator ReadOnlySpan<char>(System::String ^ value);
public static implicit operator ReadOnlySpan<char> (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

要隐式转换的字符串。

返回

表示字符串的新只读字符范围。

适用于