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
Syntaxprotected override int Serialize(
IEnumerable<T> objects,
Encoding encoding,
Stream stream
)
Protected Overrides Function Serialize (
objects As IEnumerable(Of T),
encoding As Encoding,
stream As Stream
) As Integer
protected:
virtual int Serialize(
IEnumerable<T>^ objects,
Encoding^ encoding,
Stream^ stream
) override
abstract Serialize :
objects : IEnumerable<'T> *
encoding : Encoding *
stream : Stream -> int
override Serialize :
objects : IEnumerable<'T> *
encoding : Encoding *
stream : Stream -> int
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:
Int32The number of bytes that have been written to the stream.
See Also