You are defining a class named BraindumpsClass that contains several child objects.

You are defining a class named BraindumpsClass that contains several child objects.

BraindumpsClass contains a method named ProcessChildren that performs actions on the child
objects. BraindumpsClass objects will be serializable.
You need to ensure that the ProcessChildren method is executed after the BraindumpsClass
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. Apply the OnDeserializing attribute to the ProcessChildren method.
B. Specify that BraindumpsClass implements the IDeserializationCallback interface.
C. Specify that BraindumpsClass inherits from the ObjectManager class.
D. Apply the OnSerialized attribute to the ProcessChildren method.
E. Create a GetObjectData method that calls ProcessChildren.
F. Create an OnDeserialization method that calls ProcessChildren.


Answer: B, F

No comments:

Post a Comment