Open sandboxFocus

Method ToAdvisableHashSet

ToAdvisableHashSet<T>(IEnumerable<T>)

Converts an IEnumerable<T> into an AdvisableHashSet<T>.

Declaration
public static AdvisableHashSet<T> ToAdvisableHashSet<T>(this IEnumerable<T> collection)
Parameters
Type Name Description
IEnumerable<T> collection

An IEnumerable<T>, or null.

Returns
Type Description
AdvisableHashSet<T>

A new AdvisableHashSet<T> containing all elements of collection, or null if collection is empty.

Type Parameters
Name Description
T

Type of collection items.