Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

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

Declaration

public static void SerializeToFile<TElement>(
    Type saveType,
    object saveObject,
    string filename,
    IClassifyFormat<TElement> format,
    ClassifyOptions options = null
)

Summary

Stores the specified object in a file with the given path and filename.

Generic type parameters

TElement Type of the serialized form (see format).

Parameters

TypesaveType Type of the object to store.
objectsaveObject Object to store in a file.
stringfilename Path and filename of the file to be created. If the file already exists, it is overwritten.
IClassifyFormat<TElement>format Implementation of a Classify format.
ClassifyOptionsoptions Options.