JsonSerializationUtils.DeserializeFromFile

Deserializes an object from file and returns a reference.

public static object DeserializeFromFile(string fileName,
	Type objectType,
	bool throwExceptions)

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)

throwExceptions
determines whether failure will throw rather than return null on failure


See also:

Class JsonSerializationUtils

© West Wind Technologies, 2019 • Updated: 06/23/19
Comment or report problem with topic