Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Static method: void DeserializeFileIntoObject(string, object, ClassifyOptions, IClassifyFormat<XElement>)

Declaration

public static void DeserializeFileIntoObject(
    string filename,
    object intoObject,
    ClassifyOptions options = null,
    IClassifyFormat<XElement> format = null
)

Summary

Reconstructs an object from the specified file by applying the values to an existing instance of the desired type. The type of object is inferred from the object passed in.

Parameters

stringfilename Path and filename of the file to read from.
objectintoObject Object to assign values to in order to reconstruct the original object. Also determines the type of object expected.
ClassifyOptionsoptions Options.
IClassifyFormat<XElement>format Implementation of a Classify format. See ClassifyXmlFormat for an example.