CreateSingleElementHashSet(T) Method

Definition

Assembly Tomlyn.dll

Creates a hash set with a single element for source-generated TomlSingleOrArrayAttribute handling.

protected static HashSet<T> CreateSingleElementHashSet<T>(T element)

Type parameters

T
The collection element type.

Parameters

element
{T}

The element to place in the collection.

Returns

HashSet<T>
A hash set containing element.