Name
SerializableAttribute
Synopsis
This attribute is used in the class definition to indicate that a class
can be serialized. By default, all fields in the class are serialized
except for the fields that are marked with a NonSerializedAttribute
.
It is not necessary to use this attribute if a given type implements the System.Runtime.Serialization.ISerializable
interface,
which indicates that a class provides its own methods for serialization.
Public NotInheritable Class SerializableAttribute : Inherits Attribute ' Public Constructors Public Sub New() End Class
Hierarchy
Object→Attribute→ SerializableAttribute
Valid On
Class, Struct, Enum, Delegate
Get VB.NET Core Classes in a Nutshell 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.