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

Serialization Question for .Net 2.0

P: n/a
V
Hi,

I am trying to ascertain if Object Serialization (binary or xml) has
been improved (new classes, or new ways) from version 1.1 of the .net
framework.

I pretty much know how to do that in 1.1, and am working on a program
which requires this. So before re-using the old concepts, i was trying
to see if there are any new ones.

so... HELP!

Thanks,
Vaibhav

May 11 '06 #1
Share this Question
Share on Google+
6 Replies


P: n/a
Vaibhav,

The Binary Formatter for serialization has been improved a little from
1.1 to 2.0 with the addition of new serialization events for your objects.
However, everything that you know about serialization now still applies, so
I would say go ahead and use the old concepts.

Mind you, the a new serialization model will be added with the
introduction of the WinFX components, so you might want to read up on it in
an attempt to future-proof your classes (should you decide you need it).

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"V" <va*************@gmail.com> wrote in message
news:11**********************@j73g2000cwa.googlegr oups.com...
Hi,

I am trying to ascertain if Object Serialization (binary or xml) has
been improved (new classes, or new ways) from version 1.1 of the .net
framework.

I pretty much know how to do that in 1.1, and am working on a program
which requires this. So before re-using the old concepts, i was trying
to see if there are any new ones.

so... HELP!

Thanks,
Vaibhav

May 11 '06 #2

P: n/a
V
Thank you Nicholas. At least now I know not to spend anymore time
looking for magic in the new framework version :).

Regards,
Vaibhav

May 12 '06 #3

P: n/a
kh
vaibhav. one of the biggest issues with serialization in earlier versions was
versioning of objects. in a large 1.1 application i ended up implementing
custom deserializer logic for every persisted class, which was onerous. i'm
not working on this application anymore but i know that 2.0 attempts to solve
these issues..

http://msdn2.microsoft.com/en-US/library/ms229752.aspx

good luck

kh
May 12 '06 #4

P: n/a
V
Thanks for all your replies :)

- Vaibhav

May 16 '06 #5

P: n/a
Hi Vaibhav,

I have recently built object upon the implementing the IXmlSerializable
which have been greatly improved in 2.0 (my opinion though).

http://msdn.microsoft.com/msdnmag/is...t/default.aspx
This looked very cumbersome when I first started but has turned out
quite nice.
Especially if you want complete control and have other systems (java)
and such that are dependent on a nice schema for the objects.

Also, I use the schemaImporterExtensions element in the config to disable
VS's irritating habbit of creating proxy-classes for the objects
that are already in my namespace.

Hope some of it makes sense. =)

Regards Gregor


V wrote:
Hi,

I am trying to ascertain if Object Serialization (binary or xml) has
been improved (new classes, or new ways) from version 1.1 of the .net
framework.

I pretty much know how to do that in 1.1, and am working on a program
which requires this. So before re-using the old concepts, i was trying
to see if there are any new ones.

so... HELP!

Thanks,
Vaibhav

May 25 '06 #6

P: n/a
V
Thanks Gregor for your input. I am going through the link that you sent
but for my little task it seems like an overkill.

However, i think the learning from this link is going to go into
something else (like making an organization-wide serialization library
:) )

- Vaibhav

elgrego wrote:
Hi Vaibhav,

I have recently built object upon the implementing the IXmlSerializable
which have been greatly improved in 2.0 (my opinion though).

http://msdn.microsoft.com/msdnmag/is...t/default.aspx
This looked very cumbersome when I first started but has turned out
quite nice.
Especially if you want complete control and have other systems (java)
and such that are dependent on a nice schema for the objects.

Also, I use the schemaImporterExtensions element in the config to disable
VS's irritating habbit of creating proxy-classes for the objects
that are already in my namespace.

Hope some of it makes sense. =)

Regards Gregor


V wrote:
Hi,

I am trying to ascertain if Object Serialization (binary or xml) has
been improved (new classes, or new ways) from version 1.1 of the .net
framework.

I pretty much know how to do that in 1.1, and am working on a program
which requires this. So before re-using the old concepts, i was trying
to see if there are any new ones.

so... HELP!

Thanks,
Vaibhav


Jun 7 '06 #7

This discussion thread is closed

Replies have been disabled for this discussion.