ReadOnlyMemory<T>.Implicit Operator
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Maklum balas
https://aka.ms/ContentUserFeedback.
Akan datang: Sepanjang 2024, kami akan menghentikan secara berperingkat Isu GitHub sebagai kaedah maklum balas untuk kandungan dan menggantikannya dengan sistem maklum balas baharu. Untuk mendapatkan maklumat lanjut lihat:Kirim dan lihat maklum balas untuk