TomlUnmappedMemberHandlingAttribute Class

Determines how unmapped TOML members are handled when deserializing the annotated type.

[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct, AllowMultiple = false)]
public sealed class TomlUnmappedMemberHandlingAttribute : TomlAttribute
Inheritance
TomlAttribute TomlUnmappedMemberHandlingAttribute

Constructors

NameDescription
TomlUnmappedMemberHandlingAttribute(TomlUnmappedMemberHandling)Initializes a new instance of the TomlUnmappedMemberHandlingAttribute class.

TomlUnmappedMemberHandlingAttribute(TomlUnmappedMemberHandling)

TomlUnmappedMemberHandlingAttribute.cs

Initializes a new instance of the TomlUnmappedMemberHandlingAttribute class.

public TomlUnmappedMemberHandlingAttribute(TomlUnmappedMemberHandling handling)

Parameters

handling TomlUnmappedMemberHandling
The unmapped member handling to apply.

Exceptions

ArgumentOutOfRangeException
handling is not a defined TomlUnmappedMemberHandling.

Properties

NameDescription
HandlingGets the unmapped member handling to apply.

Gets the unmapped member handling to apply.

public TomlUnmappedMemberHandling Handling { get; }