CrystalXmlUnknownTypeException

Namespace: SnowBank.Data.Xml · class

Implements: InvalidOperationException, ISerializable

Error thrown when the runtime type of a value is not part of the XML serialization graph known at generation time

Remarks

Mirrors the check the JSON generator already performs for polymorphic members: a concrete type encountered at write time that was not declared (ex: via [CrystalSerializable(typeof(...))] or a DerivedTypes declaration) has no generated WriteXml body to call into.

Constructors

CrystalXmlUnknownTypeException

CrystalXmlUnknownTypeException(Type type)

Reports that type is not part of the known XML serialization graph

CrystalXmlUnknownTypeException(Type type, string message)

Reports that type is not part of the known XML serialization graph, with a custom explanation

Properties

Type

Type Type { get; }

Runtime type that is not part of the known XML serialization graph

Methods

GetObjectData

void GetObjectData(SerializationInfo info, StreamingContext context)