ImmutableArray<T>.AsSpan Method
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
AsSpan(Range) |
Creates a span over the portion of the current ImmutableArray<T> based on the specified |
AsSpan(Int32, Int32) |
Creates a ReadOnlySpan<T> over the portion of the current ImmutableArray<T>, beginning at a specified position for a specified length. |
AsSpan() |
Creates a new read-only span over this immutable array. |
AsSpan(Range)
Creates a span over the portion of the current ImmutableArray<T> based on the specified range
.
public:
ReadOnlySpan<T> AsSpan(Range range);
public ReadOnlySpan<T> AsSpan (Range range);
member this.AsSpan : Range -> ReadOnlySpan<'T>
Public Function AsSpan (range As Range) As ReadOnlySpan(Of T)
Parameters
- range
- Range
A range in the current ImmutableArray<T>.
Returns
A span representation of the ImmutableArray<T>.
Applies to
AsSpan(Int32, Int32)
- Source:
- ImmutableArray_1.cs
- Source:
- ImmutableArray_1.cs
- Source:
- ImmutableArray_1.cs
Creates a ReadOnlySpan<T> over the portion of the current ImmutableArray<T>, beginning at a specified position for a specified length.
public:
ReadOnlySpan<T> AsSpan(int start, int length);
public ReadOnlySpan<T> AsSpan (int start, int length);
member this.AsSpan : int * int -> ReadOnlySpan<'T>
Public Function AsSpan (start As Integer, length As Integer) As ReadOnlySpan(Of T)
Parameters
- start
- Int32
The index at which to begin the span.
- length
- Int32
The number of items in the span.
Returns
The ReadOnlySpan<T> representation of the ImmutableArray<T>.
Applies to
AsSpan()
- Source:
- ImmutableArray_1.cs
- Source:
- ImmutableArray_1.cs
- Source:
- ImmutableArray_1.cs
Creates a new read-only span over this immutable array.
public:
ReadOnlySpan<T> AsSpan();
public ReadOnlySpan<T> AsSpan ();
member this.AsSpan : unit -> ReadOnlySpan<'T>
Public Function AsSpan () As ReadOnlySpan(Of T)
Returns
The read-only span representation of this immutable array.
Applies to
.NET
フィードバック
https://aka.ms/ContentUserFeedback」を参照してください。
以下は間もなく提供いたします。2024 年を通じて、コンテンツのフィードバック メカニズムとして GitHub の issue を段階的に廃止し、新しいフィードバック システムに置き換えます。 詳細については、「フィードバックの送信と表示