Прочетете на английски Редактиране

Споделяне чрез


ImmutableArray<T>.Builder.AddRange Method

Definition

Overloads

AddRange(IEnumerable<T>)

Adds the specified items to the end of the array.

AddRange(ImmutableArray<T>)

Adds the specified items to the end of the array.

AddRange(ImmutableArray<T>.Builder)

Adds the specified items to the end of the array.

AddRange(ReadOnlySpan<T>)

Adds the specified items to the end of the array.

AddRange(T[])

Adds the specified items to the end of the array.

AddRange(ImmutableArray<T>, Int32)

Adds the specified items to the end of the array.

AddRange(T[], Int32)

Adds the specified items to the end of the array.

AddRange<TDerived>(ImmutableArray<TDerived>)

Adds the specified items that derive from the type currently in the array, to the end of the array.

AddRange<TDerived>(ImmutableArray<TDerived>.Builder)

Adds the specified items that derive from the type currently in the array, to the end of the array.

AddRange<TDerived>(ReadOnlySpan<TDerived>)

Adds the specified items to the end of the array.

AddRange<TDerived>(TDerived[])

Adds the specified items that derive from the type currently in the array, to the end of the array.

AddRange(IEnumerable<T>)

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

Adds the specified items to the end of the array.

C#
public void AddRange(System.Collections.Generic.IEnumerable<T> items);

Parameters

items
IEnumerable<T>

The items to add to the array.

Applies to

.NET 10 и други версии
Продукт Версии
.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

AddRange(ImmutableArray<T>)

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

Adds the specified items to the end of the array.

C#
public void AddRange(System.Collections.Immutable.ImmutableArray<T> items);

Parameters

items
ImmutableArray<T>

The items to add to the array.

Applies to

.NET 10 и други версии
Продукт Версии
.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

AddRange(ImmutableArray<T>.Builder)

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

Adds the specified items to the end of the array.

C#
public void AddRange(System.Collections.Immutable.ImmutableArray<T>.Builder items);

Parameters

items
ImmutableArray<T>.Builder

The items to add to the array.

Applies to

.NET 10 и други версии
Продукт Версии
.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

AddRange(ReadOnlySpan<T>)

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

Adds the specified items to the end of the array.

C#
public void AddRange(scoped ReadOnlySpan<T> items);
C#
public void AddRange(ReadOnlySpan<T> items);

Parameters

items
ReadOnlySpan<T>

The items to add at the end of the array.

Applies to

.NET 10 и други версии
Продукт Версии
.NET 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided)

AddRange(T[])

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

Adds the specified items to the end of the array.

C#
public void AddRange(params T[] items);

Parameters

items
T[]

The items to add to the array.

Applies to

.NET 10 и други версии
Продукт Версии
.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

AddRange(ImmutableArray<T>, Int32)

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

Adds the specified items to the end of the array.

C#
public void AddRange(System.Collections.Immutable.ImmutableArray<T> items, int length);

Parameters

items
ImmutableArray<T>

The items to add to the array.

length
Int32

The number of elements from the source array to add.

Applies to

.NET 10 и други версии
Продукт Версии
.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

AddRange(T[], Int32)

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

Adds the specified items to the end of the array.

C#
public void AddRange(T[] items, int length);

Parameters

items
T[]

The items to add to the array.

length
Int32

The number of elements from the source array to add.

Applies to

.NET 10 и други версии
Продукт Версии
.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

AddRange<TDerived>(ImmutableArray<TDerived>)

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

Adds the specified items that derive from the type currently in the array, to the end of the array.

C#
public void AddRange<TDerived>(System.Collections.Immutable.ImmutableArray<TDerived> items) where TDerived : T;

Type Parameters

TDerived

The type that derives from the type of item already in the array.

Parameters

items
ImmutableArray<TDerived>

The items to add to the end of the array.

Applies to

.NET 10 и други версии
Продукт Версии
.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

AddRange<TDerived>(ImmutableArray<TDerived>.Builder)

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

Adds the specified items that derive from the type currently in the array, to the end of the array.

C#
public void AddRange<TDerived>(System.Collections.Immutable.ImmutableArray<TDerived>.Builder items) where TDerived : T;

Type Parameters

TDerived

The type that derives from the type of item already in the array.

Parameters

items
ImmutableArray<TDerived>.Builder

The items to add to the end of the array.

Applies to

.NET 10 и други версии
Продукт Версии
.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

AddRange<TDerived>(ReadOnlySpan<TDerived>)

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

Adds the specified items to the end of the array.

C#
public void AddRange<TDerived>(scoped ReadOnlySpan<TDerived> items) where TDerived : T;
C#
public void AddRange<TDerived>(ReadOnlySpan<TDerived> items) where TDerived : T;

Type Parameters

TDerived

The type that derives from the type of item already in the array.

Parameters

items
ReadOnlySpan<TDerived>

The items to add at the end of the array.

Applies to

.NET 10 и други версии
Продукт Версии
.NET 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided)

AddRange<TDerived>(TDerived[])

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

Adds the specified items that derive from the type currently in the array, to the end of the array.

C#
public void AddRange<TDerived>(TDerived[] items) where TDerived : T;

Type Parameters

TDerived

The type that derives from the type of item already in the array.

Parameters

items
TDerived[]

The items to add to end of the array.

Applies to

.NET 10 и други версии
Продукт Версии
.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