T
Tony Johansson
Hi!
The NonSerialized attribute has this text as part of its documentation.
"Indicates that a field of a serializable class should not be serialized.
This class cannot be inherited."
But this attribute has also another meaning and that is the following.
If you for example has serialized an object that contains a name field of
type string and than
add this Nonserialized attribute on the name field before deserializing the
file with the object within then this will happen.
The app will not read this name field into the deserialized object so the
object will not contains any name field.
So should'n this information be included in the docs ?
//Tony
The NonSerialized attribute has this text as part of its documentation.
"Indicates that a field of a serializable class should not be serialized.
This class cannot be inherited."
But this attribute has also another meaning and that is the following.
If you for example has serialized an object that contains a name field of
type string and than
add this Nonserialized attribute on the name field before deserializing the
file with the object within then this will happen.
The app will not read this name field into the deserialized object so the
object will not contains any name field.
So should'n this information be included in the docs ?
//Tony