Click or drag to resize
IEnumerableExtensionsToHashSetT Method (IEnumerableT)
Creates a HashSet from a sequence. If the sequence is already a HashSet, a new HashSet is still created.

Namespace: Bio.Util
Assembly: Bio.Core (in Bio.Core.dll) Version: 2.0.0.1 (2.0.0.1)
Syntax
public static HashSet<T> ToHashSet<T>(
	this IEnumerable<T> sequence
)

Parameters

sequence
Type: System.Collections.GenericIEnumerableT
the input sequence

Type Parameters

T
the type of elements of the sequence

Return Value

Type: HashSetT
a HashSet

Usage Note

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