CreateSingleElementImmutableArray(T) Method

Definition

Assembly Tomlyn.dll

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

protected static ImmutableArray<T> CreateSingleElementImmutableArray<T>(T element)

Type parameters

T
The collection element type.

Parameters

element
{T}

The element to place in the collection.

Returns

ImmutableArray<T>
An immutable array containing element.