nerdexam
GIAC

GSSP-NET · Question #464

You work as a Software Developer for ABC Inc. The company uses Visual Studio .NET as its application development platform. You create an application using the .NET Framework. You create a class…

The correct answer is A. Create an OnDeserialization method that calls the ProcessChild method. C. Specify that the Master class implements the IDeserializationCallback interface. See the full explanation below for the reasoning.

Question

You work as a Software Developer for ABC Inc. The company uses Visual Studio .NET as its application development platform. You create an application using the .NET Framework. You create a class named Master that contains numerous child objects. The Master class contains a method named ProcessChild that executes actions on the child objects. The Master class objects will be serializable. You must ensure that the ProcessChild method is executed subsequent to the Master class object and all its child objects are reformed. Which of the following actions will you take to accomplish the task? Each correct answer represents a part of the solution. Choose two.

Options

  • ACreate an OnDeserialization method that calls the ProcessChild method.
  • BApply the OnDeserializingAttribute class to the ProcessChild method.
  • CSpecify that the Master class implements the IDeserializationCallback interface.
  • DApply OnSerializedAttribute to the ProcessChild method.
  • ESpecify that the Master class inherits from the ObjectManager class.

How the community answered

(38 responses)
  • A
    71% (27)
  • B
    16% (6)
  • D
    3% (1)
  • E
    11% (4)

Community Discussion

No community discussion yet for this question.

Full GSSP-NET Practice