Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Sealed class: RT.Serialization.ClassifyOptions

Summary

Provides the ability to specify some options for use by Classify.

Constructors

Constructor.

Instance methods

ClassifyOptions Adds an instruction to Classify to run every object of type type through the specified IClassifyTypeProcessor implementation before and after serializing or deserializing.
ClassifyOptions
AddTypeProcessor<TElement>(Type type, IClassifyTypeProcessor<TElement> processor)
Adds an instruction to Classify to run every object of type type through the specified IClassifyTypeProcessor<TElement> implementation before and after serializing or deserializing to/from a Classify format that uses TElement as its serialized form.
ClassifyOptions
AddTypeSubstitution<TTrue, TSubstitute>(IClassifySubstitute<TTrue, TSubstitute> substitutor)
Adds a type substitution, instructing Classify to use a different type when serializing or deserializing a specific type.

Instance properties

IEqualityComparer<object> Provides a means to customize Classify’s definition of object equality, i.e. to control which objects are serialized as references to each other and which ones are duplicated in the serialized form. (see also remarks)

Instance fields

bool 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).
List<ClassifyError> If null, Classify will throw exceptions when encountering an error during deserialization. Otherwise, errors are added to this list and deserialization continues. The field that caused the error remains at its default value.
bool This option will cause Classify to ignore any auto-generated properties which have no setter, or any fields marked with the C# “readonly” keyword.