This interface has to be implemented by all XmlSerializationSurrogates.
| Instance member | Description |
Full Usage:
this.Deserialize
Parameters:
obj
-
Is null except when a base type is deserialized, in this case this is the object instance of a super class.
info : IXmlDeserializationInfo
-
The serialization info used to deserialize the stream.
parentobject : obj
-
The object which is serialized before in the object hierarchie.
Returns: obj
The object which is deserialized.
Modifiers: abstract |
Deserialize the object from xml. All deserialization code should check if object o is null. In this case it has to create a 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 a instance. In this case the code had to use this instance! It is recommended to use always the following code (except abstract and sealed classes):
public object Deserialize(object o, SampleFileRenamer.Serialization.Xml.IXmlDeserializationInfo info, object parent)
{
Foo s = null!=o ? (Foo)o : new Foo();
// (Deserialization code follows here) ...
}
|
Full Usage:
this.Serialize
Parameters:
obj
-
The object to serialize.
info : IXmlSerializationInfo
-
The serialization info used to serialize the object.
Modifiers: abstract |
Serialize the object ointo xml.
|