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.

適用於