JsonReflectionDisabledException
Namespace: SnowBank.Data.Json · class
Implements: InvalidOperationException, ISerializable
Thrown when DisableReflection is set and a value would be (de)serialized through the runtime reflection path instead of a source-generated converter or the JSON DOM.
Remarks
Diagnostic only. The message names the offending type, so a hidden reflection fallback becomes a located failure while validating that a code path stays reflection-free for Native AoT.
Constructors
JsonReflectionDisabledException
JsonReflectionDisabledException(Type type)
Creates the exception for the type that tripped the disabled reflection path.
Properties
Type
Type Type { get; }
The type that would have been handled by runtime reflection.