471,330 Members | 1,548 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

Generic Serialization?

The target language is .NET 2.0, so Generics are used.

The data that needs to be serialized is a name value pair where the
name is always a string, but the value can be anything that can be
serialized. The value can be an object that has the
SerializableAttribute, implements the ISerializable interface, or a
simple type like an int.

The data is being stored in a Dictionary Generic, what should the type
be of the value? If it is object, then a class that is not
serializable can be added to the collection. Is there any want of
forcing the type to be serializable and still handle basic types like
an int?

Feb 21 '06 #1
0 950

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Marco Segurini | last post: by
16 posts views Thread by tshad | last post: by
reply views Thread by crazyone | last post: by
2 posts views Thread by =?Utf-8?B?RFhSaWNr?= | last post: by
4 posts views Thread by Steffen Bobek | last post: by
14 posts views Thread by Ron | last post: by
6 posts views Thread by phancey | last post: by
reply views Thread by rosydwin | 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.