Click or drag to resize

SystemCollectionsArrayListXmlSerializationSurrogate0Deserialize Method

Deserialize an object from XML.

Namespace: Altaxo.Collections
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3448.0 (4.8.3448.0)
Syntax
C#
public Object Deserialize(
	Object? obj,
	IXmlDeserializationInfo info,
	Object? parent
)

Parameters

obj  Object

[Missing <param name="obj"/> documentation for "M:Altaxo.Collections.SystemCollectionsArrayListXmlSerializationSurrogate0.Deserialize(System.Object,Altaxo.Serialization.Xml.IXmlDeserializationInfo,System.Object)"]

info  IXmlDeserializationInfo
The deserialization info used to read values from the XML input.
parent  Object

[Missing <param name="parent"/> documentation for "M:Altaxo.Collections.SystemCollectionsArrayListXmlSerializationSurrogate0.Deserialize(System.Object,Altaxo.Serialization.Xml.IXmlDeserializationInfo,System.Object)"]

Return Value

Object
The deserialized object instance.

Implements

IXmlSerializationSurrogateDeserialize(Object, IXmlDeserializationInfo, Object)
Remarks
All deserialization code should check if object o is null. In this case it has to create an instance of the class which is about to be deserialized. If it is not null, the deserialization code of a super class has already created an instance. In this case the code must use that instance. It is recommended to use the following pattern (except for abstract and sealed classes):
C#
public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
{
  var s = o as Foo ?? new Foo();
  // (Deserialization code follows here) ...
}
See Also