/// <summary> /// Serializes the supplied object to the string. /// </summary> /// <typeparam name="T">The object type.</typeparam> /// <param name="obj">Object to serialize</param> /// <returns>Serialized string.</returns> public static string Serialize <T>( T obj) { return(DataContractUtils <T> .Serialize(obj)); }
/// <summary> /// Deserialize the string to the expected object type. /// </summary> /// <typeparam name="T">The object type</typeparam> /// <param name="xmlString">Serialized string</param> /// <param name="result">Deserialized object</param> public static void Deserialize <T>( string xmlString, out T result) { result = DataContractUtils <T> .Deserialize(xmlString); }