Appends a set of items to a collection.

Namespace:  Mindscape.WpfElements
Assembly:  Mindscape.WpfElements (in Mindscape.WpfElements.dll)
Version: 3.0.0.0 (3.0.0.0)

Syntax

C#
public static void Append<TCollection, TAppend>(
	ICollection<TCollection> collection,
	IEnumerable<TAppend> itemsToAdd
) where TAppend : 
Visual Basic (Declaration)
Public Shared Sub Append(Of TCollection, TAppend As ) ( _
	collection As ICollection(Of TCollection), _
	itemsToAdd As IEnumerable(Of TAppend) _
)

Parameters

collection
Type: System.Collections.Generic..::.ICollection<(Of <(TCollection>)>)
The collection being appended to.
itemsToAdd
Type: System.Collections.Generic..::.IEnumerable<(Of <(TAppend>)>)
The items to be appended.

Type Parameters

TCollection
The type of item in the collection being appended to.
TAppend
The type of item being appended.

Remarks

This method is equivalent to the AddRange method available on various concrete collection types.

See Also