-
Home
-
API
-
Tomlyn.Serialization
-
TomlSerializerContext
-
Methods
-
AddSingleElementToSingleOrArrayCollection(Object, T)
AddSingleElementToSingleOrArrayCollection(Object, T) Method
Definition
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.