Memory<T>.Implicit Memory<T>.Implicit Memory<T>.Implicit Memory<T>.Implicit Operator

定义

重载

Implicit(T[] to Memory<T>) Implicit(T[] to Memory<T>) Implicit(T[] to Memory<T>) Implicit(T[] to Memory<T>)

定义从数组到 Memory<T> 对象的隐式转换。Defines an implicit conversion of an array to a Memory<T> object.

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

定义从 ArraySegment<T> 对象到 Memory<T> 对象的隐式转换。Defines an implicit conversion of an ArraySegment<T> object to a Memory<T> object.

Implicit(Memory<T> to ReadOnlyMemory<T>) Implicit(Memory<T> to ReadOnlyMemory<T>) Implicit(Memory<T> to ReadOnlyMemory<T>) Implicit(Memory<T> to ReadOnlyMemory<T>)

定义从 Memory<T> 对象到 ReadOnlyMemory<T> 对象的隐式转换。Defines an implicit conversion of a Memory<T> object to a ReadOnlyMemory<T> object.

Implicit(T[] to Memory<T>) Implicit(T[] to Memory<T>) Implicit(T[] to Memory<T>) Implicit(T[] to Memory<T>)

定义从数组到 Memory<T> 对象的隐式转换。Defines an implicit conversion of an array to a Memory<T> object.

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

参数

array
T[]

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

返回

被转换的对象。The converted object.

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

定义从 ArraySegment<T> 对象到 Memory<T> 对象的隐式转换。Defines an implicit conversion of an ArraySegment<T> object to a Memory<T> object.

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

参数

segment
ArraySegment<T> ArraySegment<T> ArraySegment<T> ArraySegment<T>

要转换的对象。The object to convert.

返回

被转换的 ArraySegment<T> 对象。The converted ArraySegment<T> object.

Implicit(Memory<T> to ReadOnlyMemory<T>) Implicit(Memory<T> to ReadOnlyMemory<T>) Implicit(Memory<T> to ReadOnlyMemory<T>) Implicit(Memory<T> to ReadOnlyMemory<T>)

定义从 Memory<T> 对象到 ReadOnlyMemory<T> 对象的隐式转换。Defines an implicit conversion of a Memory<T> object to a ReadOnlyMemory<T> object.

public:
 static operator ReadOnlyMemory<T>(Memory<T> memory);
public static implicit operator ReadOnlyMemory<T> (Memory<T> memory);
static member op_Implicit : Memory<'T> -> ReadOnlyMemory<'T>
Public Shared Widening Operator CType (memory As Memory(Of T)) As ReadOnlyMemory(Of T)

参数

memory
Memory<T> Memory<T> Memory<T> Memory<T>

要转换的对象。The object to convert.

返回

被转换的对象。The converted object.

适用于