StringSegment.Implicit Оператор
Определение
Важно!
Некоторые сведения относятся к предварительной версии продукта, в которую до выпуска могут быть внесены существенные изменения. Майкрософт не предоставляет никаких гарантий, явных или подразумеваемых, относительно приведенных здесь сведений.
Перегрузки
Implicit(StringSegment to ReadOnlyMemory<Char>) |
Создает ReadOnlyMemory<T> из заданного StringSegment. |
Implicit(StringSegment to ReadOnlySpan<Char>) |
Создает ReadOnlySpan<T> из заданного StringSegment. |
Implicit(String to StringSegment) |
Создает StringSegment из заданного String. |
Implicit(StringSegment to ReadOnlyMemory<Char>)
Создает ReadOnlyMemory<T> из заданного StringSegment.
public:
static operator ReadOnlyMemory<char>(Microsoft::Extensions::Primitives::StringSegment segment);
public static implicit operator ReadOnlyMemory<char> (Microsoft.Extensions.Primitives.StringSegment segment);
static member op_Implicit : Microsoft.Extensions.Primitives.StringSegment -> ReadOnlyMemory<char>
Public Shared Widening Operator CType (segment As StringSegment) As ReadOnlyMemory(Of Char)
Параметры
- segment
- StringSegment
Объект StringSegment, преобразуемый в ReadOnlyMemory<T>.
Возвращаемое значение
Применяется к
Implicit(StringSegment to ReadOnlySpan<Char>)
Создает ReadOnlySpan<T> из заданного StringSegment.
public:
static operator ReadOnlySpan<char>(Microsoft::Extensions::Primitives::StringSegment segment);
public static implicit operator ReadOnlySpan<char> (Microsoft.Extensions.Primitives.StringSegment segment);
static member op_Implicit : Microsoft.Extensions.Primitives.StringSegment -> ReadOnlySpan<char>
Public Shared Widening Operator CType (segment As StringSegment) As ReadOnlySpan(Of Char)
Параметры
- segment
- StringSegment
Объект StringSegment, преобразуемый в ReadOnlySpan<T>.
Возвращаемое значение
Применяется к
Implicit(String to StringSegment)
Создает StringSegment из заданного String.
public:
static operator Microsoft::Extensions::Primitives::StringSegment(System::String ^ value);
public static implicit operator Microsoft.Extensions.Primitives.StringSegment (string value);
public static implicit operator Microsoft.Extensions.Primitives.StringSegment (string? value);
static member op_Implicit : string -> Microsoft.Extensions.Primitives.StringSegment
Public Shared Widening Operator CType (value As String) As StringSegment
Параметры
- value
- String
Объект String, преобразуемый в StringSegment.