Otter SDK Reference
Version:

ToHashSet<TSource>(System.Collections.Generic.IEnumerable<TSource> source) Method

Creates a hash set from the specified source.

Syntax

public static HashSet<TSource> ToHashSet<TSource>(IEnumerable<TSource> source)

Parameters

source
Type: System.Collections.Generic.IEnumerable<TSource>

The source enumeration.

Returns

Set created from the source elements.

Exceptions

System.ArgumentNullException

source is null (Nothing in Visual Basic).