Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

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

Declaration

public static void DeserializeFileIntoObject<TElement>(
    string filename,
    object intoObject,
    IClassifyFormat<TElement> format,
    ClassifyOptions options = 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.

Generic type parameters

TElement Type of the serialized form (see format).

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.
IClassifyFormat<TElement>format Implementation of a Classify format.
ClassifyOptionsoptions Options.