CreateSingleElementImmutableHashSet(T) Method

Definition

Assembly Tomlyn.dll

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

protected static ImmutableHashSet<T> CreateSingleElementImmutableHashSet<T>(T element)

Type parameters

T
The collection element type.

Parameters

element
{T}

The element to place in the collection.

Returns

ImmutableHashSet<T>
An immutable hash set containing element.