SerializationUtils.SerializeObject

Overload that supports passing in an XML TextWriter.

public static bool SerializeObject(object instance,
	XmlTextWriter writer,
	bool throwExceptions)

Parameters

instance
object to serialize

writer
XmlTextWriter instance to write output to

throwExceptions
Determines whether false is returned on failure or an exception is thrown

Remarks

Note the Writer is not closed when serialization is complete so the caller needs to handle closing.

Overloads:


See also:

Class SerializationUtils

© West Wind Technologies, 2019 • Updated: 06/23/19
Comment or report problem with topic