Click or drag to resize

CsvSerializerTSerialize Method (IEnumerableT, Encoding, Stream)

Serializes a collection of items by transforming each item using the Transformer property and writing the transformed item to the stream. Each item will be separated using the new line character(s) of the current environment.

Namespace:  Enkoni.Framework.Serialization
Assembly:  Enkoni.Framework.Serialization (in Enkoni.Framework.Serialization.dll) Version: 1.3.0.1
Syntax
protected override int Serialize(
	IEnumerable<T> objects,
	Encoding encoding,
	Stream stream
)

Parameters

objects
Type: System.Collections.GenericIEnumerableT
The objects that must be serialized.
encoding
Type: System.TextEncoding
The encoding that must be used.
stream
Type: System.IOStream
The stream to which the serialized items must be sent.

Return Value

Type: Int32
The number of bytes that have been written to the stream.
See Also