Click or drag to resize

collectionExtensionsAddRangeT Method (ICollectionT, IEnumerableT, Boolean)

imbSCI | imbACE | imbNLP | imbWEM | imbWBI
Adds (optionally: unique) values from the specified range

Namespace:  imbSCI.Core.extensions.data
Assembly:  imbSCI.Core (in imbSCI.Core.dll) Version: 0.3.58.
Syntax
C#
public static void AddRange<T>(
	this ICollection<T> target,
	IEnumerable<T> items,
	bool onlyUniqueValues = true
)
Request Example View Source

Parameters

target
Type: System.Collections.GenericICollectionT
The target.
items
Type: System.Collections.GenericIEnumerableT
The items.
onlyUniqueValues (Optional)
Type: SystemBoolean
if set to true it will add only unique values.

Type Parameters

T

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