共用方式為


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

要隱含轉換的字串。

傳回

表示字串的新唯讀範圍字元。

適用於