Click or drag to resize
DigitalRuneCollectionHelperAddRangeT Method

Namespace: DigitalRune.Collections
Assembly: DigitalRune (in DigitalRune.dll) Version: 1.20.0.0 (1.20.1.14552)
Syntax
public static void AddRange<T>(
	this ICollection<T> collection,
	IEnumerable<T> items
)

Parameters

collection
Type: System.Collections.GenericICollectionT
The collection to which the items should be added.
items
Type: System.Collections.GenericIEnumerableT
TThe items to be added.

Type Parameters

T
The type of items in the collection.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ICollectionT. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Exceptions
ExceptionCondition
ArgumentNullExceptioncollection is .
ArgumentNullExceptionitems is .
See Also