ImmutableArray<T>.IImmutableList<T>.AddRange(IEnumerable<T>) 方法

定义

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

 virtual System::Collections::Immutable::IImmutableList<T> ^ System.Collections.Immutable.IImmutableList<T>.AddRange(System::Collections::Generic::IEnumerable<T> ^ items) = System::Collections::Immutable::IImmutableList<T>::AddRange;
System.Collections.Immutable.IImmutableList<T> IImmutableList<T>.AddRange (System.Collections.Generic.IEnumerable<T> items);
Function AddRange (items As IEnumerable(Of T)) As IImmutableList(Of T) Implements IImmutableList(Of T).AddRange

参数

items
IEnumerable<T>

要添加到数组末尾的元素。The elements to add to the end of the array.

返回

一个新数组,其末尾已添加了元素。A new array with the elements added to the end.

实现

注解

此成员是显式接口成员的实现。This member is an explicit interface member implementation. 它只能在 ImmutableArray<T> 实例被强制转换为 IImmutableList<T> 接口时使用。It can be used only when the ImmutableArray<T> instance is cast to an IImmutableList<T> interface.

适用于