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
Geri Bildirim
https://aka.ms/ContentUserFeedback.
Çok yakında: 2024 boyunca, içerik için geri bildirim mekanizması olarak GitHub Sorunları’nı kullanımdan kaldıracak ve yeni bir geri bildirim sistemiyle değiştireceğiz. Daha fazla bilgi için bkz.Gönderin ve geri bildirimi görüntüleyin