Muokkaa

Jaa


ReadOnlyMemory<T>.Implicit Operator

Definition

Overloads

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

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

Implicit(T[] to ReadOnlyMemory<T>)

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

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

Source:
ReadOnlyMemory.cs
Source:
ReadOnlyMemory.cs
Source:
ReadOnlyMemory.cs

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

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

Parameters

segment
ArraySegment<T>

The array segment to convert.

Returns

A read-only memory representation of the array segment.

Applies to

Implicit(T[] to ReadOnlyMemory<T>)

Source:
ReadOnlyMemory.cs
Source:
ReadOnlyMemory.cs
Source:
ReadOnlyMemory.cs

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

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

Parameters

array
T[]

An array of type T to convert.

Returns

The read-only memory representation of the array of type T.

Applies to