Serializes an object instance to a file.
public static bool SerializeObject(object instance, string fileName, bool binarySerialization)
Parameters
instance
the object instance to serialize
fileName
binarySerialization
determines whether XML serialization or binary serialization is used
Overloads:
public static bool SerializeObject(object instance, XmlTextWriter writer, bool throwExceptions)
public static bool SerializeObject(object instance, ref string xmlResultString)
public static bool SerializeObject(object instance, ref string xmlResultString, bool throwExceptions)
public static bool SerializeObject(object instance, ref Byte[] resultBuffer, bool throwExceptions)
See also:
Class SerializationUtils© West Wind Technologies, 1996-2016 • Updated: 12/12/15
Comment or report problem with topic