Click or drag to resize

SerializerTSerialize Method (IEnumerableT, String)

Serializes a list of objects to a file using a default encoding.

Namespace:  Enkoni.Framework.Serialization
Assembly:  Enkoni.Framework.Serialization (in Enkoni.Framework.Serialization.dll) Version: 1.3.0.1
Syntax
public int Serialize(
	IEnumerable<T> objects,
	string filePath
)

Parameters

objects
Type: System.Collections.GenericIEnumerableT
The collection of objects that must be serialized.
filePath
Type: SystemString
The name of the output file.

Return Value

Type: Int32
The number of bytes that have been written to the file.
Exceptions
ExceptionCondition
ArgumentNullExceptionThe parameter is null.
ArgumentExceptionThe file path is empty or contains illegal characters.
See Also