单项选择题

为了对一个类实现自定义的序列化,应使该类实现()接口。

A.IObjectReference
B.ISerializable
C.IDeserializationCallback
D.IFormatter