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)

public static object DeSerializeObject(Byte[] buffer,     Type objectType,     bool throwExceptions)

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)

public static bool SerializeObject(object instance,     ref Byte[] resultBuffer,     bool throwExceptions)

SerializeObjectToByteArray

public static Byte[] SerializeObjectToByteArray(object instance,     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, 2019 • Updated: 06/23/19
Comment or report problem with topic