IXmlDeserializationInfo Interface |
Provides an abstraction for reading values during XML deserialization.
Implementations expose helpers to read primitives, arrays, complex values, and to manage element scope and callbacks.
Namespace: Altaxo.Serialization.XmlAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3448.0 (4.8.3448.0)
Syntaxpublic interface IXmlDeserializationInfo
The IXmlDeserializationInfo type exposes the following members.
Properties| | Name | Description |
|---|
 | CurrentElementName | Gets the name of the current XML element. |
 | PropertyDictionary |
Gets the property dictionary. This is a dictionary where some string/value pairs could be stored, and used during or after deserialization.
|
Top
Methods| | Name | Description |
|---|
 | CloseArray | Closes the current array scope. |
 | CloseElement | Closes the current element. |
 | GetArray(Single) | Deserializes an array of Single values from the current node. |
 | GetArray(DateTime, Int32) | Deserializes an array of DateTime values. |
 | GetArray(Double, Int32) |
Deserializes an array of double value. The xml node must be opened before with OpenArray |
 | GetArray(String, Double) |
Deserializes an array of double values. The array is allocated automatically.
|
 | GetArray(String, Int32) | Deserializes an array of Int32 values. |
 | GetArray(String, Int32) | Deserializes an array of nullable strings. |
 | GetArray(BitArray, BitArray, Int32) |
Gets an array of nullable booleans.
|
 | GetArrayOfStrings | Reads an array of strings from a named element. |
 | GetArrayOfValuesT | Reads an array of values of type T. |
 | GetBaseValueEmbedded | Reads an embedded base value for a derived instance. |
 | GetBaseValueEmbeddedOrNull | Obsolete. Deserializes the embedded base type. |
 | GetBaseValueStandalone | Reads a standalone base value for a derived instance. |
 | GetBoolean | Reads a boolean value from the current element content. |
 | GetBoolean(String) | Reads a named boolean child element. |
 | GetChar | Reads a named char child element. |
 | GetDateTime | Reads a named DateTime child element. |
 | GetDouble | Reads a Double from the current element content. |
 | GetDouble(String) | Reads a named Double child element. |
 | GetElementAsOuterXml | Gets the outer XML of a named element. |
 | GetEnum(String, Type) | Reads a named enum value of the given type. |
 | GetEnumT(String) | Reads a named enum value of type T. |
 | GetInt32 | Reads an Int32 from the current element content. |
 | GetInt32(String) | Reads a named Int32 child element. |
 | GetInt32Attribute | Reads an Int32 attribute of the current element. |
 | GetInt64 | Reads a named Int64 child element. |
 | GetMemoryStream | Reads a named MemoryStream child element. |
 | GetNodeContent | Gets the inner text content of the current node. |
 | GetNodeName | Retrieves the name of the current node. |
 | GetNullableBoolean | Reads a named nullable boolean child element. |
 | GetNullableDouble | Reads a named nullable Double child element. |
 | GetNullableEnumT | Reads a named nullable enum value of type T. |
 | GetNullableInt32 | Reads a named nullable Int32 child element. |
 | GetNullableStructT | Reads a nullable struct value. |
 | GetPropertyOrDefaultT |
Gets a property value from the property dictionary identified by the provided key string. If the property does not exist in the dictionary, the default value is returned.
|
 | GetSingle | Reads a Single from the current element content. |
 | GetSingle(String) | Reads a named Single child element. |
 | GetString | Reads a string from the current element content. |
 | GetString(String) | Reads a named string child element. |
 | GetStringAttribute | Reads a string attribute of the current element. |
 | GetStringAttributeOrNull | Reads a string attribute or returns null if missing. |
 | GetTimeSpan | Reads a named TimeSpan child element. |
 | GetValue(String, Object) | Reads a value of unknown type. |
 | GetValueT(String, Object) | Reads a value of type T. |
 | GetValueOrNull(String, Object) | Reads a value of unknown type or returns null. |
 | GetValueOrNullT(String, Object) | Reads a value of type T or returns null. |
 | GetValueOrOuterXml | Reads a value or returns the outer XML when not deserializable. |
 | OpenArray | Opens the current array and returns its element count. |
 | OpenArray(String) | Opens a named array element and returns its element count. |
 | OpenElement | Opens the current element. |
Top
Events| | Name | Description |
|---|
 | AfterDeserializationHasCompletelyFinished |
Occurs after (!) the deserialization process has completely finished, and the dirty flag of the document was cleared. This callback is intended to activate
the data sources of the document, which should be suspended during the deserialization process.
|
 | DeserializationFinished |
This event is called if the deserialization process of all objects is finished and
the deserialized objects are sorted into the document. Then the application should
call AllFinished, which fires this event. The purpose of this event is to
resolve the references in the deserialized objects. This resolving process can be successfully
done only if the objects are put in the right places in the document, so that
the document paths can be resolved to the right objects.
|
Top
See Also