Click or drag to resize

HashSetExtensionMethodsAddRangeT Method

Adds the range defined by source to the destination.

Namespace:  SD.Tools.BCLExtensions.CollectionsRelated
Assembly:  SD.Tools.BCLExtensions (in SD.Tools.BCLExtensions.dll) Version: 1.2.0
Syntax
public static void AddRange<T>(
	this HashSet<T> destination,
	IEnumerable<T> source
)

Parameters

destination
Type: System.Collections.GenericHashSetT
The destination.
source
Type: System.Collections.GenericIEnumerableT
The source.

Type Parameters

T

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type HashSetT. 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