Name
NonSerialized
Valid on
Field
Description
When a type implements the
ISerializable
interface (defined in the
System.Runtime.Serialization namespace) or has the
Serializable
attribute, all of its fields are
serializable. To prohibit a particular field in a serializable type
from being serializable, mark it with the
NonSerialized
attribute. This attribute takes no
arguments and has no properties.
Get Programming Visual Basic .NET now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.