Table of Contents

UnmappedMemberHandling Enum

Definition

Namespace
Bodu.Text.Serialization
Assembly
Bodu.Text.Serialization.dll
Package
Bodu.Text.Serialization 1.0.0
Source
UnmappedMemberHandling.cs

Specifies how the serializer treats a dictionary key that maps to no member of the target type during deserialization.

public enum UnmappedMemberHandling
Extension Methods

Fields

Skip = 0

An unmapped key is silently skipped.

Disallow = 1

An unmapped key causes deserialization to fail.

Remarks

A type that declares an extension-data member captures unmapped keys into that member, which takes precedence over this setting, so a key absorbed by extension data never triggers Disallow.

Applies to

ProductVersions
.NET8, 10