Olvasás angol nyelven Szerkesztés

Megosztás a következőn keresztül:


ImmutableArray<T>.InsertRange Method

Definition

Overloads

InsertRange(Int32, IEnumerable<T>)

Inserts the specified values at the specified index.

InsertRange(Int32, ImmutableArray<T>)

Inserts the specified values at the specified index.

InsertRange(Int32, ReadOnlySpan<T>)

Inserts the specified values at the specified index.

InsertRange(Int32, T[])

Inserts the specified values at the specified index.

InsertRange(Int32, IEnumerable<T>)

Source:
ImmutableArray_1.cs
Source:
ImmutableArray_1.cs
Source:
ImmutableArray_1.cs
Source:
ImmutableArray_1.cs

Inserts the specified values at the specified index.

C#
public System.Collections.Immutable.ImmutableArray<T> InsertRange(int index, System.Collections.Generic.IEnumerable<T> items);

Parameters

index
Int32

The index at which to insert the value.

items
IEnumerable<T>

The elements to insert.

Returns

A new immutable array with the items inserted at the specified index.

Applies to

.NET 10 és más verziók
Termék Verziók
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided)
UWP 10.0

InsertRange(Int32, ImmutableArray<T>)

Source:
ImmutableArray_1.cs
Source:
ImmutableArray_1.cs
Source:
ImmutableArray_1.cs
Source:
ImmutableArray_1.cs

Inserts the specified values at the specified index.

C#
public System.Collections.Immutable.ImmutableArray<T> InsertRange(int index, System.Collections.Immutable.ImmutableArray<T> items);

Parameters

index
Int32

The index at which to insert the value.

items
ImmutableArray<T>

The elements to insert.

Returns

A new immutable array with the items inserted at the specified index.

Applies to

.NET 10 és más verziók
Termék Verziók
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided)
UWP 10.0

InsertRange(Int32, ReadOnlySpan<T>)

Source:
ImmutableArray_1.cs
Source:
ImmutableArray_1.cs
Source:
ImmutableArray_1.cs
Source:
ImmutableArray_1.cs

Inserts the specified values at the specified index.

C#
public System.Collections.Immutable.ImmutableArray<T> InsertRange(int index, scoped ReadOnlySpan<T> items);
C#
public System.Collections.Immutable.ImmutableArray<T> InsertRange(int index, ReadOnlySpan<T> items);

Parameters

index
Int32

The index at which to insert the value.

items
ReadOnlySpan<T>

The elements to insert.

Returns

The new immutable collection.

Applies to

.NET 10 és más verziók
Termék Verziók
.NET 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided)

InsertRange(Int32, T[])

Source:
ImmutableArray_1.cs
Source:
ImmutableArray_1.cs
Source:
ImmutableArray_1.cs
Source:
ImmutableArray_1.cs

Inserts the specified values at the specified index.

C#
public System.Collections.Immutable.ImmutableArray<T> InsertRange(int index, T[] items);

Parameters

index
Int32

The index at which to insert the value.

items
T[]

The elements to insert.

Returns

The new immutable collection.

Applies to

.NET 10 és más verziók
Termék Verziók
.NET 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided)