AddSingleElementToSingleOrArrayCollection(Object, T) Method

Definition

Assembly Tomlyn.dll

Adds a single element to an existing collection for source-generated TomlSingleOrArrayAttribute handling.

protected static object AddSingleElementToSingleOrArrayCollection<T>(object existingValue, T element)

Type parameters

T
The collection element type.

Parameters

existingValue
Object

The existing collection instance.

element
{T}

The element to add.

Returns

Object
The populated collection instance.