2013-09-25 19:03:05 +10:00
using System ;
using System.IO ;
2009-06-20 13:49:35 +00:00
using System.Xml.Serialization ;
namespace umbraco.editorControls.imagecropper
{
2013-09-25 19:03:05 +10:00
[Obsolete("IDataType and all other references to the legacy property editors are no longer used this will be removed from the codebase in future versions")]
2009-06-20 13:49:35 +00:00
class Helper
{
public static string SerializeToString ( object obj )
{
XmlSerializer serializer = new XmlSerializer ( obj . GetType ( ) ) ;
using ( StringWriter writer = new StringWriter ( ) )
{
serializer . Serialize ( writer , obj ) ;
return writer . ToString ( ) ;
}
}
}
}