ReadOnlySpan<T>.Implicit 操作员

定义

重载

Implicit(ArraySegment<T> to ReadOnlySpan<T>)

定义 ArraySegment<T>ReadOnlySpan<T> 的隐式转换。

Implicit(T[] to ReadOnlySpan<T>)

定义数组到 ReadOnlySpan<T> 的隐式转换。

Implicit(ArraySegment<T> to ReadOnlySpan<T>)

Source:
ReadOnlySpan.cs
Source:
ReadOnlySpan.cs
Source:
ReadOnlySpan.cs

定义 ArraySegment<T>ReadOnlySpan<T> 的隐式转换。

public:
 static operator ReadOnlySpan<T>(ArraySegment<T> segment);
public static implicit operator ReadOnlySpan<T> (ArraySegment<T> segment);
static member op_Implicit : ArraySegment<'T> -> ReadOnlySpan<'T>
Public Shared Widening Operator CType (segment As ArraySegment(Of T)) As ReadOnlySpan(Of T)

参数

segment
ArraySegment<T>

要转换为 ReadOnlySpan<T> 的数组段。

返回

与数组段对应的只读范围。

适用于

Implicit(T[] to ReadOnlySpan<T>)

Source:
ReadOnlySpan.cs
Source:
ReadOnlySpan.cs
Source:
ReadOnlySpan.cs

定义数组到 ReadOnlySpan<T> 的隐式转换。

public:
 static operator ReadOnlySpan<T>(cli::array <T> ^ array);
public static implicit operator ReadOnlySpan<T> (T[]? array);
public static implicit operator ReadOnlySpan<T> (T[] array);
static member op_Implicit : 'T[] -> ReadOnlySpan<'T>
Public Shared Widening Operator CType (array As T()) As ReadOnlySpan(Of T)

参数

array
T[]

要转换为 ReadOnlySpan<T> 的数组。

返回

array 对应的只读范围。

适用于