473,408 Members | 1,771 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

serialization problem : java to C# conversion

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
2 1619
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


----- 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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Ante Sabo | last post by:
Hello, It seems to me to be in some kinda trouble. I wanted to implement communication between Java applet and Server through sockets and Serialization. So, I serialize Object, send it to server...
2
by: Mike Schilling | last post by:
Is there an official specification for .NET serialization? I've looked at the .NET framework docs and read Jeffrey Richter's MSDN articles, but I'm looking for something more complete,...
3
by: Aaron Clamage | last post by:
Hi, I'm not sure that if this is the right forum, but any help would be greatly appreciated. I am porting some java serialization code to c# and I can't figure out the correct way to do it. ...
1
by: Ray Mitchell | last post by:
Hello, I have two Java applications that exchange serialized objects. Although I would like to ultimately convert both to C# it's a pretty monumental task, especially for someone just learning...
6
by: Uttam | last post by:
Hello, We are at a very crucial decision making stage to select between .Net and Java. Our requirement is to download a class at runtime on the client computer and execute it using remoting or...
11
by: ajou_king | last post by:
I was running some tests on my Win32 1GHZ processor to see how long it would take to transmit objects numerous times via TCP/IP using C# ..NET Remoting vs the C++ trustworthy method of binary...
2
by: Robert Magnusson | last post by:
Hi all, I have a healthy class defined that happily serializes and deserializes from the underlying XML file. The problem I hit is that, as soon as I add an implicit conversion in any of the...
0
by: umhlali | last post by:
I get the following exception when my VB.NET app calls a Java web service that returns an array of objects. The same call works for a single object though. So looks like there is no problem...
1
by: Christo | last post by:
as part of a project at uni i have been asked to provide object persistance through files I have opted for serialization my question is quite simple when u use serialization is an object...
0
by: JosAH | last post by:
Introduction Upon hearing the word, "Serialization", the first question which comes to mind is ... "What is Serialization?" We know that we can create resusable objects in Java. But the...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.