IDataFactoryTSerialize Method

Serialize a collection of objects to a specified file location.

Definition

Namespace: Common.Core.Interfaces
Assembly: Common.Core (in Common.Core.dll) Version: 2.1.5
C#
bool Serialize(
	string path,
	string? file,
	IList<T>? list
)

Parameters

path  String
Location for the file.
file  String
Name of the file. If not supplied the default name is used.
list  IListT
The collection to serialize.

Return Value

Boolean
if the file was saved, otherwise is returned.

Remarks

There must be data already loaded and the path must exist.

See Also