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
Syntaxpublic int Serialize(
IEnumerable<T> objects,
string filePath
)
Public Function Serialize (
objects As IEnumerable(Of T),
filePath As String
) As Integer
public:
int Serialize(
IEnumerable<T>^ objects,
String^ filePath
)
member Serialize :
objects : IEnumerable<'T> *
filePath : string -> int
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:
Int32The number of bytes that have been written to the file.
Exceptions
See Also