Which of the following interfaces should you implement to enable you to run a method after an instance of your class is deserialized?

Which of the following interfaces should you implement to enable you to run a method after an instance of your class is deserialized? A. IFormatter B.

ISerializable C. IDeserializationCallback D. IObjectReference Implement the IDeserializationCallback interface and the IDeserializationCallback.OnDeserialization method to run code after an object is serialized.

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.