Specifies that the garbage-collected class can be serialized.
serializable class-specifier
The__ serializable keyword specifies that the state of the specified garbage-collected class can be serialized. To prevent individual data members from serialization, use the __transient keyword.
Note The __serializable keyword can only be applied to garbage-collected classes.
See the example for __transient.
Managed Extensions for C++ Keywords | C++ Keywords | Serialization