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 : TomlAttribute

Remarks

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
TomlAttribute TomlSingleOrArrayAttribute

Constructors

NameDescription
TomlSingleOrArrayAttribute()

TomlSingleOrArrayAttribute()

public TomlSingleOrArrayAttribute()

No documentation is available.