M
M O J O
Hi,
I need to serialize an object to a string.
In my Desktop applications, I use this function.....
Imports System.Xml.Serialization
Imports System.Xml
Public Shared Function ObjXMLString(ByVal TheObject As Object) As String
Dim serialise As XmlSerializer
Dim ms As New IO.MemoryStream()
Dim s As String
serialise = New XmlSerializer(TheObject.GetType)
serialise.Serialize(ms, TheObject)
s = ByteArrayToString(ms.ToArray())
Return s
End Function
.... but the compact framework doesn't know the XmlSerializer.
How can I serialize an object to a string in compact framework?
Thanks!!!
M O J O
I need to serialize an object to a string.
In my Desktop applications, I use this function.....
Imports System.Xml.Serialization
Imports System.Xml
Public Shared Function ObjXMLString(ByVal TheObject As Object) As String
Dim serialise As XmlSerializer
Dim ms As New IO.MemoryStream()
Dim s As String
serialise = New XmlSerializer(TheObject.GetType)
serialise.Serialize(ms, TheObject)
s = ByteArrayToString(ms.ToArray())
Return s
End Function
.... but the compact framework doesn't know the XmlSerializer.
How can I serialize an object to a string in compact framework?
Thanks!!!
M O J O