Multiple choice technology programming languages

IDeserializationCallback.OnDeserialization() , an interface method implemented is called automatically by runtime

  1. After serialization is complete

  2. Before deserialization

  3. After Deserialization is complete

  4. To be called explicitly after serialization

  5. To be called explicitly after Deserialization.

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The IDeserializationCallback.OnDeserialization() method is invoked automatically by the runtime after deserialization of an object is complete. This allows objects to perform any necessary post-deserialization initialization. It is not called during serialization (A), nor must it be called explicitly (D, E). Option B is incorrect because the method fires after deserialization completes, not before it begins.