In order to deserialize you need to know the type of what you are deserializing to. I am transfering serialized versions of different classes over a socket. I need to know the type of the string received. I found one way but I believe that there must exist either a function or another way to determine this fast. Right now I am creating a new XML-document, using the load function, and then look at the ElementName of the document to determine class.
Dim doc As XmlDocument = New XmlDocument
doc.LoadXml(strXML)
Select Case doc.DocumentElement.Name
Is there any faster or better way?
thanks!
--- neteject.com - Internet Solutions ---
Dim doc As XmlDocument = New XmlDocument
doc.LoadXml(strXML)
Select Case doc.DocumentElement.Name
Is there any faster or better way?
thanks!
--- neteject.com - Internet Solutions ---