I wrote a binary serializer at work based on reflection and the xml one was still better. This was needed for silverlight and .net so we couldn't use the standard ones
So if you are using an object model at the moment in the editor it will put saving/loading off the list quickly
Here's the code in VB the company I work for uses a mix
Code: Select all
Function Object_GetXML(ByVal Obj As Object) As String
Dim objWriter As New System.IO.StringWriter
Dim objXML As New System.Xml.Serialization.XmlSerializer(Obj.GetType)
objXML.Serialize(objWriter, Obj)
Return objWriter.ToString
End Function
<System.Diagnostics.DebuggerNonUserCode()> Function Object_Create(ByVal XML As String, ByVal Type As System.Type) As Object
Dim objReader As New System.IO.StringReader(XML)
Dim objXML As New System.Xml.Serialization.XmlSerializer(Type)
Dim objResult As Object
objResult = objXML.Deserialize(objReader)
Return objResult
End Function

