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
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈