Deserializes an object from file and returns a reference.
public static object DeSerializeObject(string fileName, Type objectType, bool binarySerialization)
Return Value
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
Overloads:
public static object DeSerializeObject(string fileName, Type objectType, bool binarySerialization, bool throwExceptions)
public static object DeSerializeObject(XmlReader reader, Type objectType)
public static object DeSerializeObject(string xml, Type objectType)
See also:
Class SerializationUtils© West Wind Technologies, 1996-2024 • Updated: 06/29/24
Comment or report problem with topic