ClassFileHandler<T>
Class
not thread safe, due to using serializer as a member
Definition
Namespace:ArtOfTest.Common.Design
Assembly:ArtOfTest.WebAii.Design.dll
Type Parameters:
T
Syntax:
cs-api-definition
public class FileHandler<T> : FileHandlerBase<T>
Inheritance: objectFileHandlerBase<T>FileHandler<T>
Constructors
FileHandler()
Declaration
cs-api-definition
public FileHandler()
Methods
Export(string, Dictionary<T, string>)
Declaration
cs-api-definition
public string Export(string filePath, Dictionary<T, string> objectsWithPaths)
Parameters
filePath
objectsWithPaths
Dictionary<T, string>
Returns
LoadFromDisk(string)
Loads and deserialize object from the file system. This will NOT trigger assembly indexing
Declaration
cs-api-definition
public T LoadFromDisk(string pathToFile)
Parameters
pathToFile
Returns
T
LoadFromDisk(string, bool)
Loads and deserialize object from the file system. If the 'autoLoadTypes' is set to true all the AppDomain assemblies will be indexed before serialization.