alanchinese Posted November 28, 2007 Posted November 28, 2007 Using attribute "NonSerialized" on certain members of a class can disable serialization/deserialization. I am wondering if I can change this attribute in the run time because sometimes I need these members to be deserialized, however sometimes I don't. I can duplicate the class but maintaining two similar classes is a pain. Thanks. Quote
Administrators PlausiblyDamp Posted November 30, 2007 Administrators Posted November 30, 2007 You could choose to implement the ISerializable interface yourself - that way you would have exact control over what did and didn't get serialized at run time. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.