Serialize Method
Definition
- Namespace
- Cuemon.Xml.Serialization.Formatters
- Assemblies
- Cuemon.Xml.dll
Serialize(object, Type)
Serializes the specified source to an object of Stream.
public override Stream Serialize(object source, Type objectType)
Parameters
sourceobjectThe object to serialize to XML format.
objectTypeTypeThe type of the object to serialize.
Returns
- Stream
A stream of the serialized
source.
Exceptions
- ArgumentNullException
sourcecannot be null -or-objectTypecannot be null.