Serialization

  • Thread starter Thread starter Arran Pearce
  • Start date Start date
A

Arran Pearce

Hi,

I have just looked at serialization (to a file) and was surprised how easy
it seemed to be. Are there any issues when serializing objects? or is it
really just that easy and powerful and I am looking for problems?

cheers for any info.

Arran
 
Serialization's pretty nice. Other than that, it's pretty sweet :)
Welcome to .NET.

That's a simple answer, as of course, complex scenarios have many issues.
For instance, in Dynamic Assemblies (assemblied created at runtime) it XML
Serialization does not work. But in straight-forward scenarios, things are
nice.

-mike
MVP
 
Good stuff.


Michael Giagnocavo said:
Serialization's pretty nice. Other than that, it's pretty sweet :)
Welcome to .NET.

That's a simple answer, as of course, complex scenarios have many issues.
For instance, in Dynamic Assemblies (assemblied created at runtime) it XML
Serialization does not work. But in straight-forward scenarios, things are
nice.

-mike
MVP
 
If you need to deserialize after modifying your objects (ie read in old
versions), you'll want to implement custom serialization for each object (by
implementing ISerializable) so that you have more control. If you don't do
this, you'll be unable to read old versions.

--
Eric Gunnerson

Visit the C# product team at http://www.csharp.net
Eric's blog is at http://blogs.gotdotnet.com/ericgu/

This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top