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
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기