ImmutableArray<T>.AddRange 方法

定义

重载

AddRange(IEnumerable<T>)

返回原始数组的副本,该数组的末尾添加了指定项。

AddRange(ImmutableArray<T>)

返回原始数组的副本,该数组的末尾添加了指定项。

AddRange(ReadOnlySpan<T>)

将指定的值添加到此列表。

AddRange(T[])

将指定的值添加到此列表。

AddRange(ImmutableArray<T>, Int32)

将指定项添加到数组的末尾。

AddRange(T[], Int32)

将指定项添加到数组的末尾。

AddRange<TDerived>(ImmutableArray<TDerived>)

将指定项添加到数组的末尾。

AddRange<TDerived>(TDerived[])

将指定项添加到数组的末尾。

AddRange(IEnumerable<T>)

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

返回原始数组的副本,该数组的末尾添加了指定项。

public:
 System::Collections::Immutable::ImmutableArray<T> AddRange(System::Collections::Generic::IEnumerable<T> ^ items);
public System.Collections.Immutable.ImmutableArray<T> AddRange (System.Collections.Generic.IEnumerable<T> items);
member this.AddRange : seq<'T> -> System.Collections.Immutable.ImmutableArray<'T>
Public Function AddRange (items As IEnumerable(Of T)) As ImmutableArray(Of T)

参数

items
IEnumerable<T>

要添加到数组中的元素。

返回

包含所添加元素的新数组。

适用于

AddRange(ImmutableArray<T>)

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

返回原始数组的副本,该数组的末尾添加了指定项。

public:
 System::Collections::Immutable::ImmutableArray<T> AddRange(System::Collections::Immutable::ImmutableArray<T> items);
public System.Collections.Immutable.ImmutableArray<T> AddRange (System.Collections.Immutable.ImmutableArray<T> items);
member this.AddRange : System.Collections.Immutable.ImmutableArray<'T> -> System.Collections.Immutable.ImmutableArray<'T>
Public Function AddRange (items As ImmutableArray(Of T)) As ImmutableArray(Of T)

参数

items
ImmutableArray<T>

要添加到数组中的元素。

返回

包含所添加元素的新数组。

适用于

AddRange(ReadOnlySpan<T>)

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

将指定的值添加到此列表。

public:
 System::Collections::Immutable::ImmutableArray<T> AddRange(ReadOnlySpan<T> items);
public System.Collections.Immutable.ImmutableArray<T> AddRange (ReadOnlySpan<T> items);
member this.AddRange : ReadOnlySpan<'T> -> System.Collections.Immutable.ImmutableArray<'T>
Public Function AddRange (items As ReadOnlySpan(Of T)) As ImmutableArray(Of T)

参数

items
ReadOnlySpan<T>

要添加的值。

返回

已添加元素的新列表。

适用于

AddRange(T[])

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

将指定的值添加到此列表。

public:
 System::Collections::Immutable::ImmutableArray<T> AddRange(... cli::array <T> ^ items);
public System.Collections.Immutable.ImmutableArray<T> AddRange (params T[] items);
member this.AddRange : 'T[] -> System.Collections.Immutable.ImmutableArray<'T>
Public Function AddRange (ParamArray items As T()) As ImmutableArray(Of T)

参数

items
T[]

要添加的值。

返回

已添加元素的新列表。

适用于

AddRange(ImmutableArray<T>, Int32)

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

将指定项添加到数组的末尾。

public:
 System::Collections::Immutable::ImmutableArray<T> AddRange(System::Collections::Immutable::ImmutableArray<T> items, int length);
public System.Collections.Immutable.ImmutableArray<T> AddRange (System.Collections.Immutable.ImmutableArray<T> items, int length);
member this.AddRange : System.Collections.Immutable.ImmutableArray<'T> * int -> System.Collections.Immutable.ImmutableArray<'T>
Public Function AddRange (items As ImmutableArray(Of T), length As Integer) As ImmutableArray(Of T)

参数

items
ImmutableArray<T>

要添加的值。

length
Int32

要从源数组中添加的元素数。

返回

已添加元素的新列表。

适用于

AddRange(T[], Int32)

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

将指定项添加到数组的末尾。

public:
 System::Collections::Immutable::ImmutableArray<T> AddRange(cli::array <T> ^ items, int length);
public System.Collections.Immutable.ImmutableArray<T> AddRange (T[] items, int length);
member this.AddRange : 'T[] * int -> System.Collections.Immutable.ImmutableArray<'T>
Public Function AddRange (items As T(), length As Integer) As ImmutableArray(Of T)

参数

items
T[]

要添加的值。

length
Int32

要从源数组中添加的元素数。

返回

已添加元素的新列表。

适用于

AddRange<TDerived>(ImmutableArray<TDerived>)

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

将指定项添加到数组的末尾。

public:
generic <typename TDerived>
 where TDerived : T System::Collections::Immutable::ImmutableArray<T> AddRange(System::Collections::Immutable::ImmutableArray<TDerived> items);
public System.Collections.Immutable.ImmutableArray<T> AddRange<TDerived> (System.Collections.Immutable.ImmutableArray<TDerived> items) where TDerived : T;
member this.AddRange : System.Collections.Immutable.ImmutableArray<#'T> -> System.Collections.Immutable.ImmutableArray<'T>
Public Function AddRange(Of TDerived As T) (items As ImmutableArray(Of TDerived)) As ImmutableArray(Of T)

类型参数

TDerived

派生自数组中已存在的项类型的类型。

参数

items
ImmutableArray<TDerived>

要添加的值。

返回

已添加元素的新列表。

适用于

AddRange<TDerived>(TDerived[])

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

将指定项添加到数组的末尾。

public:
generic <typename TDerived>
 where TDerived : T System::Collections::Immutable::ImmutableArray<T> AddRange(cli::array <TDerived> ^ items);
public System.Collections.Immutable.ImmutableArray<T> AddRange<TDerived> (TDerived[] items) where TDerived : T;
member this.AddRange : 'Derived[] -> System.Collections.Immutable.ImmutableArray<'T>
Public Function AddRange(Of TDerived As T) (items As TDerived()) As ImmutableArray(Of T)

类型参数

TDerived

派生自数组中已存在的项类型的类型。

参数

items
TDerived[]

要添加的值。

返回

已添加元素的新列表。

适用于