Click or drag to resize

ExtensionsAddRangeT Method

Adds a range of items to a collection.

Namespace: RAYLASE.Shared
Assembly: RAYLASE.Shared (in RAYLASE.Shared.dll) Version: 2.19.0
Syntax
C#
public static void AddRange<T>(
	this ICollection<T> list,
	IEnumerable<T> toAdd
)

Parameters

list  ICollectionT
Collection items are added to.
toAdd  IEnumerableT
Items to add.

Type Parameters

T
Type

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).
See Also