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:
public static bool SerializeObject(object instance, string fileName, bool binarySerialization)
public static bool SerializeObject(object instance, ref string xmlResultString)
public static bool SerializeObject(object instance, ref string xmlResultString, bool throwExceptions)
See also:
Class SerializationUtils© West Wind Technologies, 1996-2024 • Updated: 06/29/24
Comment or report problem with topic