by Uday Denduluri
Feedback
|
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days):
28735/
67
|
|
|
References |
|
|
|
User Comments
Title:
Incorrect information
Name:
Bob
Date:
2008-04-22 6:00:25 PM
Comment:
this article states that : ---------------------------- NonSerializedAttribute – If a class is marked as Serializable then all the properties can be serialized. For example, if we have a User object that has properties like user name, password [not in encrypted format], role of the user, etc. then such kinds of crucial information can be leaked out if serialized. We have the NonSerializable attribute that helps us in marking a property as not serializable. -------------------------------- however, this is totally incorrect. You cannot use the NonSerializable attribute on a Property. It is for fields only, and will generate a compiler error.
|
|
Product Spotlight
|
|