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, 1996-2016 • Updated: 12/12/15
Comment or report problem with topic