Deserializes an object from file and returns a reference.

Syntax:

public static object DeSerializeObject( string Filename,
	Type ObjectType,
	bool BinarySerialization );
Return: Instance of the deserialized object or null. Must be cast to your object type
Parameters: Filename
name of the file to serialize to

ObjectType
The Type of the object. Use typeof(yourobject class)

BinarySerialization
determines whether we use Xml or Binary serialization

See also:

Class wwUtils

Overloads:

public static object DeSerializeObject( XmlReader reader, Type ObjectType );
public static object DeSerializeObject( string XML, Type ObjectType );
public static object DeSerializeObject( Byte[] Buffer, Type ObjectType );

Last Updated: 1/28/2007 | Send topic feedback