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

Set NonSerialized() at Run Time

P: n/a
There are some cases where I do not want to serialize
certain properties of a class. Can I set individual
properties as NonSerialized() at run-time?
Nov 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Marty,
The only way I know of is to implement the ISerializable interface and do
all the work yourself.

If you don't have them the following articles covers every thing you wanted
to know about serialization but were afraid to ask:

http://msdn.microsoft.com/msdnmag/issues/02/04/net/
http://msdn.microsoft.com/msdnmag/issues/02/07/net/
http://msdn.microsoft.com/msdnmag/issues/02/09/net/

Including how to implement the ISerializable interface, and the special
constructor needed.

Hope this helps
Jay

"Marty Cruise" <mC*****@noSpam.com> wrote in message
news:03****************************@phx.gbl...
There are some cases where I do not want to serialize
certain properties of a class. Can I set individual
properties as NonSerialized() at run-time?

Nov 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.