Click or drag to resize

HashSetExtensionMethods.AddRange<T> 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.Generic.HashSet<T>
The destination.
source
Type: System.Collections.Generic.IEnumerable<T>
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 HashSet<T>. 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