Class SerializationUtils
System.Object
  Westwind.Utilities.SerializationUtils
public static class SerializationUtils : object

Class Members

MemberDescription

DeSerializeObject

Deserializes an object from file and returns a reference.

public static object DeSerializeObject(string fileName,     Type objectType,     bool binarySerialization)

public static object DeSerializeObject(string fileName,     Type objectType,     bool binarySerialization,     bool throwExceptions)

public static object DeSerializeObject(XmlReader reader,     Type objectType)

public static object DeSerializeObject(string xml,     Type objectType)

ObjectToString

Returns a string of all the field value pairs of a given object. Works only on non-statics.

public static string ObjectToString(object instanc,     string separator,     ObjectToStringTypes type)

SerializeObject

Serializes an object instance to a file.

public static bool SerializeObject(object instance,     string fileName,     bool binarySerialization)

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)

SerializeObjectToString

Serializes an object to an XML string. Unlike the other SerializeObject overloads this methods returns a string rather than a bool result!

public static string SerializeObjectToString(object instance,     bool throwExceptions)

Requirements

Namespace: Westwind.Utilities
Assembly: westwind.utilities.dll

© West Wind Technologies, 1996-2024 • Updated: 06/29/24
Comment or report problem with topic