TomlSingleOrArrayAttribute Class
Allows a collection member to be deserialized from either a single TOML value or a TOML array.
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false)]
public sealed class TomlSingleOrArrayAttribute : TomlAttributeRemarks
When the TOML input contains a single value instead of an array, the serializer treats it as a collection containing exactly one element. For mutable read-only collection members, values are appended to the existing collection.
- Inheritance
TomlAttributeTomlSingleOrArrayAttribute
Constructors
| Name | Description |
|---|---|
| TomlSingleOrArrayAttribute() |
TomlSingleOrArrayAttribute()
public TomlSingleOrArrayAttribute()No documentation is available.