serialization problem : java to C# conversion

G

Guest

Hi
I have converted the code from Java to C#, using .net tool

The Base Class implementes ISerializable interface. Which makes me implement this interface in all inherited class, In order to get the serilization work

I can't use just [Serializable] attribute, as it doesn't support versioning

Is there any work around? So inherited class don't implement ISerialzable interface, but still I can serialize inherited class

Is there any other way to serialize other than [Serializable] attribute or ISerializable interface

Thanks
Avin Pate
 
A

Anthony Yio

try J#


Avin Patel said:
Hi,
I have converted the code from Java to C#, using .net tool.

The Base Class implementes ISerializable interface. Which makes me
implement this interface in all inherited class, In order to get the
serilization work.
I can't use just [Serializable] attribute, as it doesn't support versioning.

Is there any work around? So inherited class don't implement ISerialzable
interface, but still I can serialize inherited class.
Is there any other way to serialize other than [Serializable] attribute or ISerializable interface?

Thanks,
Avin Patel
 
G

Guest

----- Anthony Yio wrote: ----

try J

No Can't do that. Is there any solution in C#


Avin Patel said:
Hi
I have converted the code from Java to C#, using .net tool
implement this interface in all inherited class, In order to get th
serilization work
I can't use just [Serializable] attribute, as it doesn't suppor versioning
Is there any work around? So inherited class don't implement ISerialzabl interface, but still I can serialize inherited class
Is there any other way to serialize other than [Serializable] attribute o ISerializable interface
Thanks
Avin Pate
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top