-
Home
-
API
-
Tomlyn.Serialization
-
TomlSerializerContext
-
Methods
-
CreateSingleElementList(T)
CreateSingleElementList(T) Method
Definition
Creates a list with a single element for source-generated TomlSingleOrArrayAttribute handling.
protected static List<T> CreateSingleElementList<T>(T element)
Type parameters
- T
- The collection element type.
Parameters
- element
- {T}
The element to place in the collection.
Returns