G
George Addison
I understand this might not be the optimal method of
deserialization, but how can I deserialize a class to
itself? Something like:
Public Sub New(Optional ByVal filename as string =
Nothing)
If Not IsNothing(filename) then
fs = New System.IO.FileStream(filename,
System.IO.FileMode.Open)
Dim sf As New
System.Runtime.Serialization.Formatters.Soap.SoapFormatter
me = CType(sf.Deserialize(fs), cJob)
End If
End Sub
deserialization, but how can I deserialize a class to
itself? Something like:
Public Sub New(Optional ByVal filename as string =
Nothing)
If Not IsNothing(filename) then
fs = New System.IO.FileStream(filename,
System.IO.FileMode.Open)
Dim sf As New
System.Runtime.Serialization.Formatters.Soap.SoapFormatter
me = CType(sf.Deserialize(fs), cJob)
End If
End Sub