AddCollectionToSingleOrArrayCollection(Object, IEnumerable) Method

Definition

Assembly Tomlyn.dll

Adds incoming values to an existing collection for source-generated TomlSingleOrArrayAttribute handling.

protected static object AddCollectionToSingleOrArrayCollection<T>(object existingValue, IEnumerable<T> incomingCollection)

Type parameters

T
The collection element type.

Parameters

existingValue
Object

The existing collection instance.

incomingCollection
IEnumerable<T>

The values to add.

Returns

Object
The populated collection instance.