I have created a new class, inherited from TreeNode, and wish to be
able to use binary serialization with it. I have marked the class as
serializable, however the object will not deserialize correctly (error:
"The constructor to deserialize an object of type
xMapNodeSerialize.MapNode was not found").
I have also thought about implementing ISerializable, however the base
TreeNode class already implements this and does not allow protected
access to it's special constructor or GetObjectData override.
Any ideas anyone?
Thanks,
Chris
simple code example:
Imports System.Runtime.Serialization
<Serializable()> _
Public Class MapNode
Inherits TreeNode
#Region "Constructors"
Public Sub New()
MyBase.New()
End Sub
Public Sub New(ByVal text As String)
Me.New()
MyBase.Text = text
End Sub
#End Region
End Class