ImmutableArray<T>.AddRange 方法

定义

重载

AddRange(IEnumerable<T>)

返回原始数组的副本,该数组的末尾添加了指定项。Returns a copy of the original array with the specified elements added to the end of the array.

AddRange(ImmutableArray<T>)

返回原始数组的副本,该数组的末尾添加了指定项。Returns a copy of the original array with the specified elements added to the end of the array.

AddRange(IEnumerable<T>)

返回原始数组的副本,该数组的末尾添加了指定项。Returns a copy of the original array with the specified elements added to the end of the array.

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>

要添加到数组中的元素。The elements to add to the array.

返回

包含所添加元素的新数组。A new array with the elements added.

AddRange(ImmutableArray<T>)

返回原始数组的副本,该数组的末尾添加了指定项。Returns a copy of the original array with the specified elements added to the end of the array.

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>

要添加到数组中的元素。The elements to add to the array.

返回

包含所添加元素的新数组。A new array with the elements added.

适用于