Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Field: bool EnforceEnums

Declaration

bool EnforceEnums

Summary

This option is only relevant if the value you are deserializing is an enum value or a collection or dictionary involving enum keys or values. If true, only enum values declared in the enum type are allowed (as if it were a field with ClassifyEnforceEnumAttribute). Enum values inside of objects are not affected by this option (but only by ClassifyEnforceEnumAttribute).

See also