ReadOnlySpan<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 ReadOnlySpan<T>) |
Defines an implicit conversion of an ArraySegment<T> to a ReadOnlySpan<T>. |
Implicit(T[] to ReadOnlySpan<T>) |
Defines an implicit conversion of an array to a ReadOnlySpan<T>. |
Implicit(ArraySegment<T> to ReadOnlySpan<T>)
- Source:
- ReadOnlySpan.cs
- Source:
- ReadOnlySpan.cs
- Source:
- ReadOnlySpan.cs
Defines an implicit conversion of an ArraySegment<T> to a ReadOnlySpan<T>.
public:
static operator ReadOnlySpan<T>(ArraySegment<T> segment);
public static implicit operator ReadOnlySpan<T> (ArraySegment<T> segment);
static member op_Implicit : ArraySegment<'T> -> ReadOnlySpan<'T>
Public Shared Widening Operator CType (segment As ArraySegment(Of T)) As ReadOnlySpan(Of T)
Parameters
- segment
- ArraySegment<T>
The array segment to be converted to a ReadOnlySpan<T>.
Returns
A read-only span that corresponds to the array segment.
Applies to
Implicit(T[] to ReadOnlySpan<T>)
- Source:
- ReadOnlySpan.cs
- Source:
- ReadOnlySpan.cs
- Source:
- ReadOnlySpan.cs
Defines an implicit conversion of an array to a ReadOnlySpan<T>.
public:
static operator ReadOnlySpan<T>(cli::array <T> ^ array);
public static implicit operator ReadOnlySpan<T> (T[]? array);
public static implicit operator ReadOnlySpan<T> (T[] array);
static member op_Implicit : 'T[] -> ReadOnlySpan<'T>
Public Shared Widening Operator CType (array As T()) As ReadOnlySpan(Of T)
Parameters
- array
- T[]
The array to convert to a ReadOnlySpan<T>.
Returns
The read-only span that corresponds to array
.
Applies to
Povratne informacije
https://aka.ms/ContentUserFeedback.
Stiže uskoro: Tijekom 2024. postupno ćemo ukinuti servis Problemi sa servisom GitHub kao mehanizam za povratne informacije za sadržaj i zamijeniti ga novim sustavom za povratne informacije. Dodatne informacije potražite u članku:Pošaljite i pogledajte povratne informacije za