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);
public System.Collections.Immutable.ImmutableArray<T> AddRange (scoped 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[]

要添加的值。

返回

添加了元素的新列表。

适用于