Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Sealed class: RT.Serialization.ClassifyEnforceEnumAttribute

Summary

To be used on a field or automatically-implemented property of an enum type or a collection involving an enum type. Specifies that Classify shall not allow integer values that are not explicitly declared in the relevant enum type. If the serialized form is such an integer, fields or automatically-implemented properties of an enum type are instead left at the default value assigned by the object’s default constructor, while in collections, the relevant element is omitted (changing the size of the collection). If the enum type has the [Flags] attribute, bitwise combinations of the declared values are allowed.

Remarks

Any attribute with this type name is accepted by Classify to mean the same thing, regardless of where it is declared, making it possible to apply this attribute without referencing this library.

Constructors

Creates a new instance of ClassifyEnforceEnumAttribute.