CanPopulateSingleOrArrayCollection(Object) Method

Definition

Assembly Tomlyn.dll

Determines whether an existing collection can be populated for source-generated TomlSingleOrArrayAttribute handling.

protected static bool CanPopulateSingleOrArrayCollection<T>(object existingValue)

Type parameters

T
The collection element type.

Parameters

existingValue
Object

The existing collection instance.

Returns

Boolean
true when the collection can be populated in place.