ArraySegment<T>.Implicit(T[] to ArraySegment<T>) 运算符

定义

定义 T 类型的数组到 T 类型的数组段的隐式转换。Defines an implicit conversion of an array of type T to an array segment of type T.

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

参数

array
T[]

要转换的数组。The array to convert.

返回

ArraySegment<T>

数组的数组段表示形式。An array segment representation of the array.

适用于