Partager via


ObservableList<T>.AddRange Method

Definition

Overloads

AddRange(IEnumerable<T>)
AddRange(IList<T>)

AddRange(IEnumerable<T>)

Adds the elements of the specified collection to the end of the List<T>.

public void AddRange (System.Collections.Generic.IEnumerable<T> collection);
member this.AddRange : seq<'T> -> unit
Public Sub AddRange (collection As IEnumerable(Of T))

Parameters

collection
IEnumerable<T>

Applies to

AddRange(IList<T>)

Adds the elements of the specified collection to the end of the List<T>.

public void AddRange (System.Collections.Generic.IList<T> collection);
member this.AddRange : System.Collections.Generic.IList<'T> -> unit
Public Sub AddRange (collection As IList(Of T))

Parameters

collection
IList<T>

Applies to