July 2015
Intermediate to advanced
1300 pages
87h 27m
English
The serialization process raises four events, which are summarized in Table 39.1.
TABLE 39.1 Serialization Events
Serialization events are handled differently than classic events are. There is an attribute for each event that you can handle as follows:
'Invoke this method before'serialization begins<OnSerializing()>Private Sub FirstMethod()End Sub'Invoke this method after'serialization completes<OnSerialized()>Private Sub SecondMethod()End Sub'Invoke this method before'deserialization begins<OnDeserializing()>Private Sub ThirdMethod()End Sub'Invoke this method after'deserialization completes<OnDeserialized()>Private Sub ...