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>)

來源:
ImmutableArray_1.cs
來源:
ImmutableArray_1.cs
來源:
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>)

來源:
ImmutableArray_1.cs
來源:
ImmutableArray_1.cs
來源:
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>)

來源:
ImmutableArray_1.cs
來源:
ImmutableArray_1.cs
來源:
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[])

來源:
ImmutableArray_1.cs
來源:
ImmutableArray_1.cs
來源:
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)

來源:
ImmutableArray_1.cs
來源:
ImmutableArray_1.cs
來源:
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)

來源:
ImmutableArray_1.cs
來源:
ImmutableArray_1.cs
來源:
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>)

來源:
ImmutableArray_1.cs
來源:
ImmutableArray_1.cs
來源:
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[])

來源:
ImmutableArray_1.cs
來源:
ImmutableArray_1.cs
來源:
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[]

要加入的值。

傳回

新增項目的新清單。

適用於