Rediger

Del via


Memory<T>.Implicit Operator

Definition

Overloads

Implicit(T[] to Memory<T>)

Defines an implicit conversion of an array to a Memory<T> object.

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

Defines an implicit conversion of an ArraySegment<T> object to a Memory<T> object.

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

Defines an implicit conversion of a Memory<T> object to a ReadOnlyMemory<T> object.

Implicit(T[] to Memory<T>)

Source:
Memory.cs
Source:
Memory.cs
Source:
Memory.cs

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);
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)

Parameters

array
T[]

The array to convert.

Returns

The converted object.

Applies to

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

Source:
Memory.cs
Source:
Memory.cs
Source:
Memory.cs

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)

Parameters

segment
ArraySegment<T>

The object to convert.

Returns

The converted ArraySegment<T> object.

Applies to

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

Source:
Memory.cs
Source:
Memory.cs
Source:
Memory.cs

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)

Parameters

memory
Memory<T>

The object to convert.

Returns

The converted object.

Applies to