How to prevent auto implemented properties from being serialized?

Posted by Hopla on Stack Overflow See other posts from Stack Overflow or by Hopla
Published on 2009-11-13T10:22:22Z Indexed on 2010/03/30 9:23 UTC
Read the original article Hit count: 314

Filed under:
|
|

How can I prevent a auto implemented property from being serialized by the binary formatter? The [NonSerialized] attribute can only be used with fields. And the field is hidden when using auto implemented properties.

© Stack Overflow or respective owner

Related posts about c#

Related posts about serialization