471,627 Members | 1,508 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

Version Tolerant Serialization

New for .net framework 2.0 is version tolerant serialization. To use this
new feature, do I also need to use the new generics types for collections,
e.g. SortedList?

Thanks,

Dennis
Nov 29 '05 #1
1 2101
Dennis,

No, you don't. Mind you, you can have version-tolerant classes in any
version of the framework. If you implement ISerializable, and the custom
serialization constructor, then you can determine how tolerant your classes
are.

In .NET 2.0 and above, if you are willing to say that all additions of
fields in the future are optional, then you can use the OptionalField
attribute to indicate that if the field is not in the serialization stream,
then don't throw an exception.

You do not need to use generics for new collections in .NET 2.0. You
can use whatever you wish (that is serializable, of course).

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

"Dennis C. Drumm" <dc******@community.nospam> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
New for .net framework 2.0 is version tolerant serialization. To use this
new feature, do I also need to use the new generics types for collections,
e.g. SortedList?

Thanks,

Dennis

Nov 29 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Dennis C. Drumm | last post: by
3 posts views Thread by =?Utf-8?B?TWFydGluIEtvY2g=?= | last post: by
1 post views Thread by XIAOLAOHU | last post: by
reply views Thread by leo001 | last post: by

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.