SerializerTSerialize Method (IEnumerableT, Stream) |
Serializes a list of objects to a stream using a default encoding.
Namespace:
Enkoni.Framework.Serialization
Assembly:
Enkoni.Framework.Serialization (in Enkoni.Framework.Serialization.dll) Version: 1.3.0.1
Syntaxpublic int Serialize(
IEnumerable<T> objects,
Stream stream
)
Public Function Serialize (
objects As IEnumerable(Of T),
stream As Stream
) As Integer
public:
int Serialize(
IEnumerable<T>^ objects,
Stream^ stream
)
member Serialize :
objects : IEnumerable<'T> *
stream : Stream -> int
Parameters
- objects
- Type: System.Collections.GenericIEnumerableT
The collection of objects that must be serialized. - stream
- Type: System.IOStream
The stream to which the objects must be serialized.
Return Value
Type:
Int32The number of bytes that have been written to the stream.
Exceptions
See Also