SerializeToWriter Method
Definition
- Namespace
- Cuemon.Xml.Serialization.Formatters
- Assemblies
- Cuemon.Xml.dll
SerializeToWriter(XmlWriter, object, Type)
Serializes the specified source into an XML format.
public void SerializeToWriter(XmlWriter writer, object source, Type objectType)
Parameters
writerXmlWriterThe writer used in the serialization process.
sourceobjectThe object to serialize to XML format.
objectTypeTypeThe type of the object to serialize.
Exceptions
- ArgumentNullException
writercannot be null -or-sourcecannot be null -or-objectTypecannot be null.