Click or drag to resize

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.Xml
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3448.0 (4.8.3448.0)
Syntax
C#
public interface IXmlDeserializationInfo

The IXmlDeserializationInfo type exposes the following members.

Properties
 NameDescription
Public propertyCurrentElementNameGets the name of the current XML element.
Public propertyPropertyDictionary Gets the property dictionary. This is a dictionary where some string/value pairs could be stored, and used during or after deserialization.
Top
Methods
 NameDescription
Public methodCloseArrayCloses the current array scope.
Public methodCloseElementCloses the current element.
Public methodGetArray(Single)Deserializes an array of Single values from the current node.
Public methodGetArray(DateTime, Int32)Deserializes an array of DateTime values.
Public methodGetArray(Double, Int32) Deserializes an array of double value. The xml node must be opened before with OpenArray
Public methodGetArray(String, Double) Deserializes an array of double values. The array is allocated automatically.
Public methodGetArray(String, Int32)Deserializes an array of Int32 values.
Public methodGetArray(String, Int32)Deserializes an array of nullable strings.
Public methodGetArray(BitArray, BitArray, Int32) Gets an array of nullable booleans.
Public methodGetArrayOfStringsReads an array of strings from a named element.
Public methodGetArrayOfValuesTReads an array of values of type T.
Public methodGetBaseValueEmbeddedReads an embedded base value for a derived instance.
Public methodGetBaseValueEmbeddedOrNullObsolete.
Deserializes the embedded base type.
Public methodGetBaseValueStandaloneReads a standalone base value for a derived instance.
Public methodGetBooleanReads a boolean value from the current element content.
Public methodGetBoolean(String)Reads a named boolean child element.
Public methodGetCharReads a named char child element.
Public methodGetDateTimeReads a named DateTime child element.
Public methodGetDoubleReads a Double from the current element content.
Public methodGetDouble(String)Reads a named Double child element.
Public methodGetElementAsOuterXmlGets the outer XML of a named element.
Public methodGetEnum(String, Type)Reads a named enum value of the given type.
Public methodGetEnumT(String)Reads a named enum value of type T.
Public methodGetInt32Reads an Int32 from the current element content.
Public methodGetInt32(String)Reads a named Int32 child element.
Public methodGetInt32AttributeReads an Int32 attribute of the current element.
Public methodGetInt64Reads a named Int64 child element.
Public methodGetMemoryStreamReads a named MemoryStream child element.
Public methodGetNodeContentGets the inner text content of the current node.
Public methodGetNodeNameRetrieves the name of the current node.
Public methodGetNullableBooleanReads a named nullable boolean child element.
Public methodGetNullableDoubleReads a named nullable Double child element.
Public methodGetNullableEnumTReads a named nullable enum value of type T.
Public methodGetNullableInt32Reads a named nullable Int32 child element.
Public methodGetNullableStructTReads a nullable struct value.
Public methodGetPropertyOrDefaultT 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.
Public methodGetSingleReads a Single from the current element content.
Public methodGetSingle(String)Reads a named Single child element.
Public methodGetStringReads a string from the current element content.
Public methodGetString(String)Reads a named string child element.
Public methodGetStringAttributeReads a string attribute of the current element.
Public methodGetStringAttributeOrNullReads a string attribute or returns null if missing.
Public methodGetTimeSpanReads a named TimeSpan child element.
Public methodGetValue(String, Object)Reads a value of unknown type.
Public methodGetValueT(String, Object)Reads a value of type T.
Public methodGetValueOrNull(String, Object)Reads a value of unknown type or returns null.
Public methodGetValueOrNullT(String, Object)Reads a value of type T or returns null.
Public methodGetValueOrOuterXmlReads a value or returns the outer XML when not deserializable.
Public methodOpenArrayOpens the current array and returns its element count.
Public methodOpenArray(String)Opens a named array element and returns its element count.
Public methodOpenElementOpens the current element.
Top
Events
 NameDescription
Public eventAfterDeserializationHasCompletelyFinished 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.
Public eventDeserializationFinished 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