Yes, forget I mentioned calling the New() method. However, I don't understand what you're trying to explain. The tutorials I've read about using binary serialization of custom classes required implementing ISerializable, which in turn requires:
VB.NET Code:
Public Sub New(ByVal info As SerializationInfo, ByVal context As StreamingContext) End Sub Public Sub GetObjectData(ByVal info As SerializationInfo, ByVal context As StreamingContext) Implements ISerializable.GetObjectData End Sub
Assuming the following imports:
have been imported.VB.NET Code:
Imports System.Runtime.Serialization Imports System.Runtime.Serialization.Formatters.Binary




Reply With Quote