Enum HumlUnknownDerivedTypeHandling
- Namespace
- Huml.Net.Versioning
- Assembly
- Huml.Net.dll
Controls deserialiser behaviour when a discriminator value is not recognised.
public enum HumlUnknownDerivedTypeHandling
Fields
FallBackToBaseType = 1Deserialise as the base type when the discriminator value is unrecognised. The discriminator entry is still stripped before fallback so
UnmappedMemberHandling.Disallowis not triggered.Throw = 0Throw
HumlDeserializeExceptionwhen the discriminator value does not match any registered derived type. This is the default.