Namespace: | Sirenix.Serialization |
Assembly: | Sirenix.Serialization |
public class SerializationConfig
public SerializationConfig()
Setting this member to true indicates that in the case where, when expecting to deserialize an instance of a certain type, but encountering an incompatible, uncastable type in the data being read, the serializer should attempt to deserialize an instance of the expected type using the stored, possibly invalid data.
This is equivalent to applying the AllowDeserializeInvalidData attribute, except global instead of specific to a single type. Note that if this member is set to false, individual types may still be deserialized with invalid data if they are decorated with the AllowDeserializeInvalidData attribute.
public bool AllowDeserializeInvalidData
public DebugContext DebugContext { get; set; }
public ISerializationPolicy SerializationPolicy { get; set; }
public void ResetToDefault()