serialization question

  • Thread starter Thread starter ashish
  • Start date Start date
A

ashish

hi All,

Iam facing a some problems during serialization of a class. The scenario
is that iam inheriting a class which implements the ISerializable
interface , i want the derived class to also implement iserializable
interface, but vb would not let me do that, giving a compilation error.

i wrote the GetObject and a New with proper parameters with GetObject
method shadowing the one in base class .., but that does not seems to
solve the problem,

it would be great if anyone could point out how to get around this issue.

TIA
-ashish
 
if its your own class make it overridable and then call your bases
serialization ...

If its a framework object (DataTable comes to mind) you can't do it and will
have to wrap the object and reimplement its serialziation methods as VB.NET
will not allow you to reimplement an interface.

Cheers,

Greg
 
Back
Top