By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,960 Members | 2,232 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,960 IT Pros & Developers. It's quick & easy.

serialization problem : java to C# conversion

P: n/a
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

Nov 16 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
try J#
"Avin Patel" <an*******@discussions.microsoft.com> wrote in message
news:FA**********************************@microsof t.com...
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

Nov 16 '05 #2

P: n/a


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

try J

No Can't do that. Is there any solution in C#
"Avin Patel" <an*******@discussions.microsoft.com> wrote in messag
news:FA**********************************@microsof t.com..
Hi
I have converted the code from Java to C#, using .net tool
The Base Class implementes ISerializable interface. Which makes m 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

Nov 16 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.