Question:You are defining a class named MyClass that contains several child objects. MyClass contains a method named ProcessChildren that performs actions on the child objects. MyClass objects will be serializable. You need to ensure that the ProcessChildren method is executed after the MyClass object and all its child objects are reconstructed. Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.) 

A Specify that MyClass implements the IDeserializationCallback interface. 

B Apply the OnDeserializing attribute to the ProcessChildren method. 

C Create an OnDeserialization method that calls ProcessChildren. 

D Specify that MyClass inherits from the ObjectManager class. 

E Create a GetObjectData method that calls ProcessChildren. 

F Apply the OnSerialized attribute to the ProcessChildren method. 

+ Answer
+ Report
Total Preview: 1177

Copyright © 2024. Powered by Intellect Software Ltd